The UNIX and Linux Forums  


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 -->
  #21 (permalink)  
Old 10-24-2008
Leo_NN Leo_NN is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 34
It is Friday, eow, have no more brain energy...

Is there way to use something like IN condition within awk
Quote:
> ls | awk -F"_" 'NF==5 && ($3=="CLIENT" || $3=="CUSTOMER") && ($4>20080101000000) {print $0}'
something like:

Quote:
> ls | awk -F"_" 'NF==5 && ($3 in "$object_list") && ($4>20080101000000) {print $0}'
Thanks and have a great weekend!