cat file | sed s/,/\n/ you may need to add a g to make it global through the line. Adam Maloney Systems Administrator Sihope Communications On Sun, 17 Sep 2000, Ben Luey wrote: > 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 at mn-linux.org > For additional commands, e-mail: tclug-list-help at mn-linux.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: tclug-list-unsubscribe at mn-linux.org For additional commands, e-mail: tclug-list-help at mn-linux.org