Posts: 52
Threads: 21
Joined: Jun 2012
02-14-2013, 03:24 PM
(This post was last modified: 02-14-2013, 05:39 PM by tibit.)
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
Posts: 2,936
Threads: 12
Joined: May 2012
Posts: 52
Threads: 21
Joined: Jun 2012
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
Posts: 2,936
Threads: 12
Joined: May 2012
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.
Posts: 2,301
Threads: 11
Joined: Jul 2010
msys/mingw is your friend
Posts: 52
Threads: 21
Joined: Jun 2012
Thank you very much,
I will try this out
regards,
tibit
Posts: 414
Threads: 14
Joined: Mar 2012
sed is faster:
Code:
sed "/^[0-9]*$/d" in > out
Posts: 52
Threads: 21
Joined: Jun 2012
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