_                    _
  ___ | |__   __ _ _______ | |_
 / _ \| '_ \ / _` |_  / _ \| __|
| (_) | | | | (_| |/ / (_) | |_
 \___/|_| |_|\__,_/___\___/ \__|

sedusage and tips

back_to_top

The typical separator is /, which can conflict with pathnames. An option is to use another character as a separtor, eg.: @ :

echo "/some/path" | sed "s/\/some\/path/\/other\/directory/"
echo "/some/path" | sed "s@/some/path@/other/directory@"

back_to_top

text_manipulation

sed(1)

<sed.oh>

back_to_top

ohazot | about | ohazot.com <admin@ohazot.com>

Created:2025-10-03|Updated:2025-10-06 OpenBSD linux