Follow-up Comment #21, bug #58206 (project groff):

Here is an illustration of "\n" working as an encoded newline as replacement
text in macOS sed's 's' command.


$ uname -a
Darwin gcc104.fsffrance.org 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22
20:20:05 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8101 arm64
$ sed --version # reveal non-GNU sed
sed: illegal option -- -
usage: sed script [-Ealnru] [-i extension] [file ...]
        sed [-Ealnu] [-i extension] [-e script] ... [-f script_file] ... [file
...]
$ echo foo | sed 's/foo/&\nbar/'
foo
bar




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58206>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to