I have a file that has a list of numbers in the first and only column. To shorten the output I would like to create a multiple column output.
I am attempting to use something like the following:
cat filename | nawk 'BEGIN{ FS="\n"; RS=""; OFS="\n"}{print $1, $2, $3, $4}'
Obviously that's not right because it's not working, but I can't seem to figure out what to do to get the output to look like the example below:
12345 234231243 12312 1234233
132134 894388 1241234 12341234
Any help would be greatly appreciated.
Thanks,
John
I am attempting to use something like the following:
cat filename | nawk 'BEGIN{ FS="\n"; RS=""; OFS="\n"}{print $1, $2, $3, $4}'
Obviously that's not right because it's not working, but I can't seem to figure out what to do to get the output to look like the example below:
12345 234231243 12312 1234233
132134 894388 1241234 12341234
Any help would be greatly appreciated.
Thanks,
John