* Matt Wozniski on Saturday, December 13, 2008 at 21:29:44 -0500 > FWIW, you can use \n in sed.
That depends on the implementation. > > echo a | sed 's/a/a\nb\n/' > > is equivalent to > > :s/a\n/a\rb\r/ /sw/bin/sed == GNU, /usr/bin/sed == Apple shipped BSD-like ~$ echo a | /sw/bin/sed -e 's/a/a\nb\n/' a b ~$ echo a | /usr/bin/sed -e 's/a/a\nb\n/' anbn Workaround (too lazy to look up the credits): ~$ echo a | /usr/bin/sed -e 's/a/a\'$'\n''b\'$'\n''/' a b c -- \black\trash movie _C O W B O Y_ _C A N O E_ _C O M A_ Ein deutscher Western/A German Western -->> http://www.blacktrash.org/underdogma/ccc.html -->> http://www.blacktrash.org/underdogma/ccc-en.html --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
