hi I write the following syntax (part of my ksh script) to check if the first word of LINE=star and the second word is car
[[ ` echo $LINE | awk '{print $1}' ` = star ]] && [[ ` echo $LINE | awk '{print $2}' ` = car ]] && print "match"
I need other simple smart and shorter solution then my syntax. from awk,perl or sed(if it possible to use echo only once or better if we cant not use echo, because I need to save time to minimum) can I get some ideas?