How-To Find and Replace in multiply files on the command line

Find and Replace in multiply files.

including a Back-Up

perl -pe "s/mouse/chicken/g" -i.bak $FILES;

Or no Back-up

perl -pe  "s/mouse/chicken/g" -i $FILES;

# -e execute this command
# -p loop over each line and print
# -i inplace edit, make a backup file

Post new comment
The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.