Want to use sed(1) to edit a file in place? Well, to replace every ‘e’ wi
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
want no backup:
sed -i ” s/e/o/g foo
Заменить множественные пробелы sed ‘s/ */ /g’
This entry was posted by Michael Saygak on 20 October 2006 at 1:19 am, and is filed under admin. Follow any responses to this post through RSS 2.0.
You can leave a response or trackback from your own site.
Your email address will not be published.