18
Jun
SED New Line
Posted by Jacob, under Scripts RepositoryEver needed to use ‘sed’ to exchange new lines for another character? Here’s a way to do it:
sed ':a;N;$!ba;s/\n/ /g'
The Ultimate cPanel Tutorial Resource
Ever needed to use ‘sed’ to exchange new lines for another character? Here’s a way to do it:
sed ':a;N;$!ba;s/\n/ /g'
Post a Comment