The UNIX and Linux Forums  


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




Thread: AWK question?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 06-23-2006
J_ang J_ang is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 15
Thanks for everybody's input couldn't accomplish my mission yet

Output of $* (a b c d)

typeset -u P=`echo $*|awk 'BEGIN{RS=FS}/b/{print "$"NR}'`

Rather then giving me b it gives me $2.

Thanks in advance.