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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #11 (permalink)  
Old 05-19-2008
timj123 timj123 is offline
Registered User
 

Join Date: Jan 2008
Posts: 61
does anyone know how to use the system command in awk? Been trying to sort with the following:

Code:
END {
for ( i in x )
if ( i != "0-0" ) {
printf "%s",i | system("sort -nk 1") }
can't get it working so that I can sort these arrays
Reply With Quote