Find n Replace

June 24, 2009 at 22:55:47
Specs: Windows XP
Hi,

Can any body help me on the following issue,

I have one text file called "final.txt" from this
file I want to remove specific lines like,

CanvasDetails,0,10,20,30 (Some line with
start of Canvasdetails word)
$ (Special symbol)
10 (Starting with integer)

I need a batch file which will generate new file
with this changes on single click.

So is there any command/ Code snippet for
that ?

Can ny one help on this issue...?



See More: Find n Replace

Report •


#1
June 24, 2009 at 23:39:53
if you have Gawk on windows (see my sig)
c:\test> gawk "!/^[0-9]/&&!/\$/&&!/CanvasDetails" file.txt

GNU win32 packages | Gawk


Report •

#2
June 24, 2009 at 23:45:04
Thnx for the suggestion But what if I dnt have this installed on
my sysytem and I want to write the command in Batch file for
this issue ...wht can I do ?


Report •

#3
June 25, 2009 at 00:47:17
then use the findstr command. see findstr /? for more info

GNU win32 packages | Gawk


Report •

Related Solutions

#4
June 25, 2009 at 01:59:11
Ok I have used this command but its seems tht it only finds the
string but wht is the command for replacement of tht string with
some other string?

Report •

#5
July 2, 2009 at 18:13:12
couldnt u just use ctrl+H?

Report •


Ask Question