Not sure on this, but you might be able to use the importprivkey RPC call. What I would try is importing one of them with rescan=false and then import another with rescan=true. The rescan=true causes it to go through the whole blockchain and look for any places that the associated address to that private key. After importing two private keys, the first without a rescan and the second with a rescan, then look to see if rescanning on the second private key got you all the transactions for the first private key that you entered.
Then if that works, you could write a command line script to execute that RPC call with each line of the file as the private key.
That's a high level description of what I would try. If you need more help on the importprivkey, open the Bitcoin-QT GUI, go to Help >> Debug Window >> Console and type "help importprivkey". If you need help writing that script, you'll probably have to do some googling around to learn about your OS-dependent scripting language.
1We need a lot more details. What OS, what format private keys (WIF, Mini, hex), which client, what format of wallet are the privkeys in now? More details would help. – Wizard Of Ozzie – 2014-10-06T03:59:37.777
I've tried to edit this to clarify the question. Asker, please let me know if I understood what you're asking correctly. Thanks! – Nick ODell – 2014-10-06T04:42:09.400
OS: Windows Private key: WIF, I checked Client: I'm not sure actually. Hope you can suggest me one
Additionally, I suppose a CLI that could sweep keys from a text file would be fast enough right? If there is a such a thing yet
Thank you!
@Nick thanks for editing the question :) – Sajidkhan – 2014-10-06T05:06:33.923
@Nick actually I meant sweeping and not importing! They're both different right? – Sajidkhan – 2014-10-06T06:09:15.857
@user3079309 They are. Sweeping usually means moving bitcoins from many addresses to a single address, whereas importing doesn't make any transactions at all. – Nick ODell – 2014-10-06T06:12:10.657
Thanks! Is there any way to load up a text file( or maybe a .bat file) with private keys and run them in a client with a gui or cli? – Sajidkhan – 2014-10-06T06:17:26.747