[QUOTE]Originally posted by schneidz
[B]hi lq, i have this bash script, how do i pass the bash variable to the awk command? :
By using quoting sensibly:
if('$2' == $cycle)
printf( $0 " cycle = " $cycle "\n");
Spot the extra single quotes I've added. Your lesson for today is to figure out why this makes it work.