The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 03-18-2009
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,554
Quote:
Originally Posted by vgersh99 View Post
nawk 'ORS=(FNR%2)?FS:RS' somedata
-->
Code:
nawk 'ORS=(FNR%2)?FS:RS' somedata
        
i did not get the output.
# awk 'ORS=(FNR%2)?FS:RS' file 2 4 6 8
-->
Code:
# awk 'ORS=(FNR%2)?FS:RS' file
 2
 4
 6
 8