The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
tranpose but some difference
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
tranpose but some difference
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
03-18-2009
rikxik
Registered User
Join Date: Dec 2007
Posts: 250
It has to be some issue with your file. I got correct output from both commands:
Code:
$ paste -d" " - - < file1 1 2 3 4 5 6 7 8 $ nawk 'ORS=(FNR%2)?FS:RS' file1 1 2 3 4 5 6 7 8
rikxik
View Public Profile
Find all posts by rikxik
Find rikxik's past nominations received
Find rikxik's present nominations given