hashcat Forum
[solved] How to remove numbers from dictionary .txt or .dic - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Deprecated; Previous versions (https://hashcat.net/forum/forum-29.html)
+--- Forum: General Help (https://hashcat.net/forum/forum-8.html)
+--- Thread: [solved] How to remove numbers from dictionary .txt or .dic (/thread-2072.html)



[solved] How to remove numbers from dictionary .txt or .dic - tibit - 02-14-2013

Hi all

Does anybody knows some .bat command to remove plain numbers from a (huge) dictionary list. (.txt or .dic)

Thank you for any reply

tibit


RE: How to remove numbers from dictionary .txt or .dic - epixoip - 02-14-2013

sed -i 's/[0-9]//g' dict


RE: How to remove numbers from dictionary .txt or .dic - tibit - 02-14-2013

Thank you for your quick reply epixoip,

but I think this will remove "all" numbers.
I want : example
4519aar
451975a
4519752
451B78l
4519789

will remove :
4519752
4519789

exportfile (out):
4519aar
451975a
451B78l

note:I'm using windows ...

tibit


RE: How to remove numbers from dictionary .txt or .dic - epixoip - 02-14-2013

egrep -v '^[0-9]+$' dict >dict.1

i'm sure you can find sed, grep, etc for windows. most people on these forums use these tools on windows, so they're definitely out there.


RE: How to remove numbers from dictionary .txt or .dic - undeath - 02-14-2013

msys/mingw is your friend


RE: How to remove numbers from dictionary .txt or .dic - tibit - 02-14-2013

Thank you very much,
I will try this out

regards,
tibit


RE: How to remove numbers from dictionary .txt or .dic - M@LIK - 02-14-2013

sed is faster:
Code:
sed "/^[0-9]*$/d" in > out



RE: How to remove numbers from dictionary .txt or .dic - tibit - 02-14-2013

Thank you so much epixoip and m@lik, sed works with gnuwin32 utilities.
Tried your command and it works great!!

Ill change heading to solved :-)

tibit