Jul 30, 2014, 4:51 AM
Post #2 of 6
This is a job for a regular expression. Read the perl documentation perlre, perlretut, perlrequick.
Re: [cool_cake20] search and replace
[In reply to]
You can use a one-liner:
perl -pe"s/)\s*;\s*$/);/" infile >outfile
Note: Replace double quotes with single quotes on almost any system but windows.