sed
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’
| Print article | This entry was posted by Michael Saygak on 20 Октябрь 2006 at 1:19 дп, and is filed under admin. Follow any responses to this post through RSS 2.0. Вы можете оставить комментарий или трэкбэк с вашего сайта. |