Re: Add carriage return (new line character)



explor wrote:
Hi Gurus,
I have a file which has names each followed by semicolon(;). I need to
replace each of his semicolon with new line character with sed.

sample.txt
test1;test2;test3;test4

desired output:
test1
test2
test3
test4

Any help is greatly appreciated.

$ echo "test1;test2;test3;test4" | perl -lp073e1
test1
test2
test3
test4



John
--
Perl isn't a toolbox, but a small machine shop where you can special-order
certain sorts of tools at low cost and in short order. -- Larry Wall
.



Relevant Pages