TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [TCLUG:21356] line break in sed
Hi
This works on my machine:
awk '{gsub(", ","\n");print}' <filename>
Ed Hoeffner
1-271 BSBE
312 Church St. SE
Mpls, MN 55455
hoeffner@dcmir.med.umn.edu
612-625-2115
612-625-2163 fax
I've a long one line text file formated like:
name1, name2, name3, ....... name9999
I want to format it like:
name1
name2
name3
....
name9999
I was thinking of doing:
sed \s\, \linebreak\g
But I don't know how to insert a line break -- I've tried \n, but no luck.
The name page talks aobut /<newline> but that was treated as text.
Thanks,
Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: tclug-list-unsubscribe@mn-linux.org
For additional commands, e-mail: tclug-list-help@mn-linux.org