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 -->
  #1 (permalink)  
Old 05-16-2008
kaustubh137 kaustubh137 is offline
Registered User
 

Join Date: May 2008
Posts: 17
Use of index in UNIX shell scripting

I have following line of code with me in one of the shell script.

LIST=`awk -v SRV=$SRV -v GRP=$GRP -v ID=$ID '{ if (index($0, GRP) && index($0, SRV) == 2 )

Can anybody help me in understanding the code ? specifically the bold one
Reply With Quote
Forum Sponsor