Bsd sed: Difference between revisions
From wikinotes
(Created page with "Sed allows you to search/replace within lines/files.<br> See also gnu sed. = Usage = <blockquote> <source lang="bash"> # Replace 'aaa' with 'bbb' cat echo "aaa_stuff_aaa"...") |
No edit summary |
||
Line 2: | Line 2: | ||
See also [[gnu sed]]. | See also [[gnu sed]]. | ||
= | For overview see [[gnu sed]]. | ||
= BSD differences = | |||
<blockquote> | <blockquote> | ||
< | <syntaxhighlight lang="bash"> | ||
# BSD replace file contents | # BSD replace file contents | ||
sed -i ".bak" "s_aaa_bbb_g" /path/to/file | sed -i ".bak" "s_aaa_bbb_g" /path/to/file | ||
</ | </syntaxhighlight> | ||
</blockquote><!-- | </blockquote><!-- BSD differences --> |