in reply to Re^2: regex is not producing desired output
in thread regex is not producing desired output
I tried it, but it did not change anything in the file
You didn't ask for help saving strings to a file, so I left that bit to you.
perl -pe"s/\bis\b/are/g" apache.txt >apache.new
Or here's a way that renames the original file for you and saves back to the original file:
perl -i.bak -pe"s/\bis\b/are/g" apache.txt
|
|---|