2012-12-07, 04:41 AM
this is not working for me
I get a syntax error at the start of the print statement. I have tried wrapping it in braces, adding a semi-colon, etc to no avail.
Anyone have an idea? This is the start of a more complex one line if-elseif command I need to build, but for some reason this is not working.
actually here is the if-elseif I am starting with
tail -n50 kern.log | gawk '{ IF ( $8 == "CIFS" ) print "start"}'
I get a syntax error at the start of the print statement. I have tried wrapping it in braces, adding a semi-colon, etc to no avail.
Anyone have an idea? This is the start of a more complex one line if-elseif command I need to build, but for some reason this is not working.
actually here is the if-elseif I am starting with
tail -n50 kern.log | awk '{ IF ( $8 == "CIFS" ) { print "Start"; } ELSE IF ( $8 == "wlan0" ) { print "Stop"; } }'