sed
Getting newlines
Submitted by pete on Wed, 2009-04-22 09:41defaults domains | sed 's/, /\'$'\n/g'
Will change all ", " to a real new line. Notice the use of a single quote.
Getting $PATH line by line
Submitted by luke on Sat, 2008-07-12 13:16echo $PATH | tr ':' '\n' will list the $PATH nicely.
So will this:
echo $PATH | sed "s/:/\\
> /g"
That is hitting return and getting the ">" that is not typed in.
