I want to compare 2 columns in a file using awk. The columns I want to compare for an expression look like these:
A1 123456 456783 NR A1 789876 432565 NM and so on. I want to separate the 4th and the 8th column from the file which have NR in both the 4th and the 8th columns. 
I have tried using awk `awk '$4 && $8 ~ /NR_/{print}'` but nothing happens when I run the script.
Can someone help.

regards.