Bsd sed: Difference between revisions
From wikinotes
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
See also [[gnu sed]]. | See also [[gnu sed]]. | ||
= Documentation = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| <code>man sed</code> || https://www.freebsd.org/cgi/man.cgi?query=sed&format=html | |||
|- | |||
|} | |||
</blockquote><!-- Documentation --> | |||
= Overview = | |||
<blockquote> | |||
See [[gnu sed]]. | |||
</blockquote><!-- Overview --> | |||
= | = Differences from GNU = | ||
<blockquote> | <blockquote> | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
Line 10: | Line 22: | ||
sed -i ".bak" "s_aaa_bbb_g" /path/to/file | sed -i ".bak" "s_aaa_bbb_g" /path/to/file | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- | </blockquote><!-- Differences from GNU --> |
Latest revision as of 14:06, 16 October 2021
Sed allows you to search/replace within lines/files.
See also gnu sed.
Documentation
man sed
https://www.freebsd.org/cgi/man.cgi?query=sed&format=html
Overview
See gnu sed.
Differences from GNU
# BSD replace file contents sed -i ".bak" "s_aaa_bbb_g" /path/to/file