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 -->
  #9 (permalink)  
Old 10-13-2008
pkumar3 pkumar3 is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 7
Plz Find OUT the error in following code

cut -f 7,34- -d "," first97col.CSV|awk -F\, '{
if ($2!="") printf$1FS c=0
for(i=2;i<=NF;i++)
printf$i (++c%4?i==NF?RS:FS:RS$1FS) fi;
}'

Last edited by pkumar3; 10-13-2008 at 09:41 AM..