Y
Hacker News
new
|
ask
|
show
|
jobs
by
imurray
6009 days 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.