Apr 28, 2005 #1 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...
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...
Apr 28, 2005 1 #2 PHV MIS Nov 8, 2002 53,708 FR 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 Upvote 0 Downvote
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
Apr 28, 2005 1 #3 olded Programmer Oct 27, 1998 1,065 US cat datafile|xargs echo > mynewdatafile Upvote 0 Downvote
Apr 28, 2005 Thread starter #4 jdespres MIS Aug 4, 1999 230 US Both are AWEsome!!!!... Now if I can break these up into 40 data item chunks Upvote 0 Downvote
Apr 28, 2005 #5 PHV MIS Nov 8, 2002 53,708 FR 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 Upvote 0 Downvote
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
Apr 28, 2005 #6 olded Programmer Oct 27, 1998 1,065 US cat datafile|xargs -n40 echo Upvote 0 Downvote