Want to use sed(1) to edit a file in place?
Senza categoria
1
Post
1
Autori
0
Visualizzazioni
-
Want to use sed(1) to edit a file in place? Well, to replace every 'e' with
an 'o', in a file named 'foo', you can do:sed -i.bak s/e/o/g foo
And you'll get a backup of the original in a file named 'foo.bak', but if you
want no backup:sed -i '' s/e/o/g foo
-
undefined Stefano Marinelli ha condiviso questa discussione