tags:

views:

17

answers:

1

hi

I write the following awk ( print VAL_1 & VAL_2 if match in file )

   awk -v VAL_1=$NET -v VAL_2=$NET_SPEED   '$1 == VAL_1 && $2 == VAL_2 '  file

how to add in awk the print command ,

in order to print the word MATCH

 if 

    $1=VAL_1 
 & 
    $2=VAL_2

lidia

+1  A: 
$1 == VAL_1 && $2 == VAL_2 { print "MATCH" }
Amadan