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 > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 11-20-2008
J.T. J.T. is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 3
The dumbest of dumb Text Search questions

I was able to assign the results of the awk statement to a variable, but it looks like the supplied code only returns a result if the 2nd search criteria (blah) is in the 1st column. If the 2nd search criteria is not in the 1st column as follows, nothing is returned:

Code:
 
blah
blah
ABC
123
456
789
DEF
yech
yech
GHI blah
JKL blah
How do I modify this logic to search beyond the 1st coumn?