
BillKSmith
Veteran
Jul 30, 2014, 4:51 AM
Post #2 of 6
(1309 views)
|
Re: [cool_cake20] search and replace
[In reply to]
|
Can't Post
|
|
This is a job for a regular expression. Read the perl documentation perlre, perlretut, perlrequick. 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. Good Luck, Bill
|