[CentOS] perl code to remove newlines
cpolish at surewest.net
cpolish at surewest.netThu Dec 30 19:44:33 UTC 2010
- Previous message: [CentOS] perl code to remove newlines
- Next message: [CentOS] perl code to remove newlines
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
John Doe wrote: > $ cat $FILE | tr "\n" " " | sed 's/ *></>\n</g' I was yearning for someone to chime with that! sed is clearly the best & most straightforward way to do this task. I can't help myself - there's a "useless use of cat": $ < $FILE tr "\n" " " | sed 's/ *></>\n</g' http://www.partmaps.org/era/unix/award.html#uucaletter -- "Pedantic, I?" -- Alexei Sayle
- Previous message: [CentOS] perl code to remove newlines
- Next message: [CentOS] perl code to remove newlines
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list