Hello,
I have a file that has data like this:
one two three four
five
six seven
eight nine ten
Is there a quick way using sed of nawk to put each word on it's own line?
Thanks.
Hello,
I have a file that has data like this:
one two three four
five
six seven
eight nine ten
Is there a quick way using sed of nawk to put each word on it's own line?
Thanks.
tr ' ' '\n' < file.contaning.data
If awk, then define your OFS as \n and FS as ' '
Similiar is the case with sed.
Beautiful!!! Thank you.