[solved] How to remove numbers from dictionary .txt or .dic
#1
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
#2
sed -i 's/[0-9]//g' dict
#3
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
#4
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.
#5
msys/mingw is your friend
#6
Thank you very much,
I will try this out

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