Mar 10, 2004 #1 hill007 Technical User Mar 9, 2004 60 US I have a input file as: A B C D E F G 1 2 3 4 5 6 7 My output should look like this: A B C D E F G 1 2 3 4 5 6 7 How do I do this? Thanks a lot.
I have a input file as: A B C D E F G 1 2 3 4 5 6 7 My output should look like this: A B C D E F G 1 2 3 4 5 6 7 How do I do this? Thanks a lot.
Mar 10, 2004 #2 vgersh99 Programmer Jul 27, 2000 2,146 US something like this: NF == 1 { print $0;next } {printf("%s ", $0) } vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
something like this: NF == 1 { print $0;next } {printf("%s ", $0) } vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+
Mar 10, 2004 1 #3 futurelet Programmer Mar 3, 2004 539 US For uniform spacing: Code: 1==NF { print; next} {$1=$1; printf "%s ", $0 } Upvote 0 Downvote
Mar 10, 2004 #4 vgersh99 Programmer Jul 27, 2000 2,146 US good point, futurelet! vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+ Upvote 0 Downvote
good point, futurelet! vlad +----------------------------+ | #include<disclaimer.h> | +----------------------------+