Category: Text Processing

How to using multiple delimiters in awk and sed

Multiple delimiter-separated fields in awk or sed. Using awk command: ➜ awk -F'[:=|]' '{print $1, $2, $3}' test.log; Using sed command: ➜ sed 's/[:=|]/ /g' test.log...

Awk tutorial: awk group by count

When we are dealing with log files, we often need to count the number of times some keywords appear. For example, count the number of...