sed, python, \n , . , , :
sed 'H;1h;$!d;x; s/something\n/somethingelse/g'
sed ( ), . , . , , . :
:
$ cat file
Try to av-
oid word
splits.
, , :
$ sed 'H;1h;$!d;x; s/-\n//g' file
Try to avoid word
splits.
, :
$ sed 'H;1h;$!d;x; s/-\x0a//g' file2
Try to avoid word
splits.