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 02-11-2009
gio001 gio001 is offline
Registered User
  
 

Join Date: Mar 2007
Posts: 70
Hello,
I am amazed of how smooth the code is ...can you explain a little in words what is the logic of the line:

max[$1] = !($1 in max) ? $2 : ($2 > max[$1]) ? $2 : max[$1]

Thanks.

Last edited by gio001; 02-11-2009 at 04:39 PM..