sed 's/\n//g'
sed 's/groad\n// '
sed 's/groad\ngoogle/groad/
$ echo -e "welcome\nto\nwww\ngroad\nnet" | sed ':begin;$!N;s/\n//;tbegin;'welcometowwwgroadnet
$ echo -e "welcome\nto\nwww\ngroad\nnet" | sed ':begin;$!N;s/\(w.w\)\n/\1/;tbegin;P;D'
welcome
to
wwwgroad
net
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |