4 ms·
Equivalent perl one-liner (Perl regex may be more convenient): perl -e 's/pat/rep/g' -p -i file -i.bak instead of -i works the same to create backups.
by imurray 17y ago
Equivalent perl one-liner (Perl regex may be more convenient):
perl -e 's/pat/rep/g' -p -i file
-i.bak instead of -i works the same to create backups.