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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attempting to convert data from 2

Status
Not open for further replies.

jdespres

MIS
Aug 4, 1999
230
US
I would like to convert the following format from:

name
name
name
name
name

to

name name name name name name ....

I have 600 data element(s) that I would like to be installed on one line...
 
tr '\n' ' ' < /path/to/input > output

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Both are AWEsome!!!!...

Now if I can break these up into 40 data item chunks


 
awk '{x=x" "$0}!(NR%40){print x;x=""}END{if(x!="")print x}' /path/to/input > output

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top