Sed with new line
am 27.08.2007 10:36:29 von struggleHi,
I want to use sed -e 's/,/\n/g' file to replace all "," to new line.
But I failed. Could anyone give me some advice?
Thanks!
Bo
Hi,
I want to use sed -e 's/,/\n/g' file to replace all "," to new line.
But I failed. Could anyone give me some advice?
Thanks!
Bo
On Aug 27, 11:36 am, Bo Yang
> Hi,
> I want to use sed -e 's/,/\n/g' file to replace all "," to new line.
> But I failed. Could anyone give me some advice?
>
put a litteral newline escaped with \ :
sed 's/,/\
/g'
or prefer:
tr ',' '\n'