Using current line in a command in AWK

Hi, Im trying to get current line in the AGREP command I use in AWK. My script looks like this:

list.txt
car
bus

checklist.txt
cer
buss

cat list.txt | awk -v mycmd="$(agrep -2 -i $0 checklist.txt)" '{print $mycmd}' 

It doesnt work. How can I get the current line in the $0 variable? Or is there any different solution? I need to go through each line in list.txt, search & compare it in checklist.txt and get a result.

Thank u for ur responses.

Not just any awk uses variables. Use gawk or nawk if available. Otherwise use your inline function embedded as you have above; you'll just need to escape it, or wrap it within an eval statement.

Pls could you give me an example how to get the var in some unix command in nawk or gawk?

As per the man awk (linux) manpage:OPTIONS
Gawk accepts the following options:
-v var=val
--assign var=val
Assign the value val to the variable var, before execution of the program begins. Such variable values are available to the BEGIN block of an AWK program.
For example:

trogdor $ awk -vVAR=uservalue 'BEGIN {print VAR;}' /dev/null

will print to stdout:

uservalue

Note that:

trogdor $ awk 'BEGIN {print VAR;}' VAR=anothervalue /dev/null

will print to stdout:

(an empty line)

(I could not get an empty line to show up in a code block), as VAR has not yet been assigned.
However:

trogdor $ echo | awk '{print VAR;}' VAR=anotheruservalue

will print to stdout:

anotheruservalue

Hi, thank you all for ur responses. Im not sure if i get.

I need to get a line (from list.txt) in the variable var, that AWK processes and use agrap on it. The first line is represented as $0.

Can you provide a somewhat longer example of your input files, and what you expect the output to be.

Input:

cat list.txt

output:
computer
mobile
users

cat list2.txt 

output:
computers
mobil
dogs

What want is to take words one by one from the list.txt, let search each word in the list2.txt and find similar word.