: I've got a bit of a problem that I need resolved.
: I've got a file in the following format :
: -
: r1field1 r1field2 r1field3 r1field4 .....
: r2field1 r2field2 r2field3 r2field4 .....
: -
: and I need it in the format :
: -
: r1field1
: r1field2
: r1field3
: r1field4
: .
: .
: .
: .
: r2field1
: r2field2
: r2field3
: r2field4
: .
: .
: .
: .
: -
: Can anybody help me?
: Thanks very much in advance.
if the fields are whitespace separated and in the proper order
tr -s ' ' '\012' < input > output
will translate all blanks and tabs ( the first ' ' contains a blank and
a tab) into a single line feed.
: <-------------------------------------------------------------------->
: | Toby Blake Public Health Sciences, |
: | Edinburgh University, |