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




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

Join Date: Jun 2006
Posts: 15
AWK question?

I have question about awk if someone can help me here. I want to find a string (file has just one row) and then get the position of the column.

let say i have 4 columns

a b c d

Look for b and somehow get the column position in this case b is at $2 script doesn't know what is the position of the column. So if awk or something else can help me to get position of the column.

Thanks in Advance.