Skip to content
Advertisement

AWK with commands [closed]

I’m learning in Linux and my senior give me a task that I find a word in a syslog through AWK command where that all the details of that word showing. I check out google and but there is not a single command I found which is helpful.

Advertisement

Answer

You can use below commands

JavaScript

Some examples.

JavaScript

You can specify fields to print as well. awk command splits the line into fields (addressable by $1 to $NF) using space as delimiter.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement