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.
Deze vraag is om te controleren of u een persoon bent. Di is om spam berichten tegen te gaan.