Hi,
I am studying an awk command:
awk '{ sub(/\/\/.*/, "", $NF); print }' input.txt
The input.txt is:
char*s1="//hello"; //comment
//delete
/* hello //*/
The output is :
char*s1="//hello";
/* hello
My question is why the contents ("//hello") is not deleted? And what does $NF mean?
Thanks