Ubuntu: awk: unknown option -w ignored



Question:

I came across this forum, and saw this answer, and though "Hey, this looks cool!".

After trying the commands, I received this error:

maliciouzzhd@ubuntu$ awk -W interactive '$0="maliciouzzhd: "$0' | nc 10.0.0.1 1234  awk: unknown option -W ignored    awk: can't open file $0="maliciouzzhd: "$0   source line number 1  

If anyone knows how to fix this error, this would be fantastic!


Solution:1

-W is a mawk option, and you maybe using gawk (GNU awk). Run the command with mawk -W .... mawk is installed by default, but if gawk is installed, it becomes the default awk.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »