Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

traspose rows in columns

Status
Not open for further replies.

tonivm

Technical User
Mar 2, 2006
64
ES
Hi everybody:

I have a new problem, I have a file where the data is stored like:

1.000E+02 6.549E+01 4.252E+01 2.755E+01 1.786E+01 1.163E+01 7.660E+00 5.140E+00 3.550E+00 2.560E+00 1.950E+00 1.570E+00 1.330E+00 1.190E+00 1.100E+00 1.040E+00 1.010E+00 9.800E-01 9.600E-01 9.500E-01 9.300E-01 9.200E-01 9.100E-01 9.000E-01 8.900E-01 8.800E-01 8.700E-01 8.600E-01 8.500E-01 8.400E-01 8.300E-01 8.200E-01 8.100E-01 8.000E-01 7.900E-01 7.800E-01 7.700E-01 7.600E-01 7.500E-01 7.400E-01 7.300E-01 7.200E-01 7.100E-01 7.000E-01 6.900E-01 6.800E-01 6.700E-01 6.600E-01 6.500E-01 6.400E-01 6.300E-01 6.200E-01 6.100E-01 6.000E-01 5.900E-01 5.800E-01 5.700E-01 5.600E-01 5.500E-01 5.400E-01 5.300E-01 5.200E-01 5.100E-01 5.000E-01 4.900E-01

and I would like that the rows appear such a columns and each one concatenate with before.

Could anybody tell me how I have to do.
Thanks in advance. :D
 
Hello,
no idea what your delimiter is..
A global substitution of consecutive spaces or tabs to a line feed

Code:
awk '{gsub(/[ \t]+/,"\n")}1' file

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top