The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #7 (permalink)  
Old 02-09-2008
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,538
Quote:
Originally Posted by H2OBoodle View Post
Anyway, I've tried "sort" and some awk, but still no joy.
you should show how you did that.
anyway, have a go at it
Code:
awk '
 {
  for(i=NF;i>0;i--){
      # fill in the blanks
  }
 }
' file