It does the inplace replace and takes a back up of the old files with .backup extension$perl -e 's/old/new/ -pi.backup /etc/hosts
In reply to Re^2: Search and replace within a file
by sriharsha.sm
in thread Search and replace within a file
by muizelaar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |