switch ("$choice"
case "[Aa]":
echo -n "Please Enter The Car Model : "
set input="$<"
gawk '/$input/ {print "Car Model: "$2;print "Chassis No:
"$1;age=(2003-$4);print "Age of the car: "age}' carfile
echo ""
echo -n "Do You Want To Go Back To Main Menu [Y/N] : "
set choice="$<"
if ($choice == "Y" || $choice == "y" then
set flag=true
else
set flag=false
endif
Hi guys...need u guys help on this, i just started learning linux and using awk..i dunno how to call the variables from the script to awk..anyone can help me? please, kinda desperate as this must finish before friday
case "[Aa]":
echo -n "Please Enter The Car Model : "
set input="$<"
gawk '/$input/ {print "Car Model: "$2;print "Chassis No:
"$1;age=(2003-$4);print "Age of the car: "age}' carfile
echo ""
echo -n "Do You Want To Go Back To Main Menu [Y/N] : "
set choice="$<"
if ($choice == "Y" || $choice == "y" then
set flag=true
else
set flag=false
endif
Hi guys...need u guys help on this, i just started learning linux and using awk..i dunno how to call the variables from the script to awk..anyone can help me? please, kinda desperate as this must finish before friday