Shell variable with awk

line_no=6
echo 'Phone,' `awk 'NR==$line_no{print;exit}' <filename>`

what is the error in this..

it says..
awk: Field $() is not correct.

The input line number is 1. The file is <filename>.
The source line number is 1.

i want to print the data in the $line_no line of a certain file..

The error is improperly use of a shell variable. One way to use a shell variable with awk:

line_no=6
awk -v var=$line_no 'NR==var{print "Phone: "$0;exit}' <filename>

Regards

thnks man.. it helped