Re: Add carriage return (new line character)
- From: "John W. Krahn" <someone@xxxxxxxxxxx>
- Date: Sun, 06 May 2007 19:57:08 GMT
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
.
- References:
- Add carriage return (new line character)
- From: explor
- Add carriage return (new line character)
- Prev by Date: Re: Add carriage return (new line character)
- Next by Date: Re: Using Bash to get the last line of a file
- Previous by thread: Re: Add carriage return (new line character)
- Next by thread: Re: Add carriage return (new line character)
- Index(es):
Relevant Pages
|
|