Search’n'Replace
To search and replace a string at the same file with “sed” command, use the -i option:
sed -is 's/search/replace/g'
The same option can be used for Perl too; this can help a lot:
perl -pie 's/search/replace/g'
To search and replace a string at the same file with “sed” command, use the -i option:
sed -is 's/search/replace/g'
The same option can be used for Perl too; this can help a lot:
perl -pie 's/search/replace/g'