Please note, this is a STATIC archive of website hashcat.net from 08 Oct 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.

hashcat Forum

Full Version: [solved] How to remove numbers from dictionary .txt or .dic
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
sed -i 's/[0-9]//g' dict
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
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.
msys/mingw is your friend
Thank you very much,
I will try this out

regards,
tibit
sed is faster:
Code:
sed "/^[0-9]*$/d" in > out
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