in reply to Re: Find & Replace
in thread Find & Replace

Hello

This command worked..is there any way to specify the
line numbers so that only first line and last line of the
file will be replaced
Thanks & Regards

Sridhar

Replies are listed 'Best First'.
Re^3: Find & Replace
by sh1tn (Priest) on Aug 10, 2006 at 16:08 UTC
    perl -i -pe '(1==$. or eof) && s/,,+/,/' file_name