Tag: linux command

AWK tutorial: three ways of awk execution

Linux awk command execution ways: 1. Command line execution Detailed introduction of syntax, see 《Linux awk》 2. Shell script file execution Explanation: !/usr/bin/awk The first...

grep show lines before and after

Usually when searching for keywords, we need to look at the keyword context information, all of which use -A, -B and -C parameters. Show num...

AWK tutorial: awk sort uniq

In daily development, we often use awk command to cut and sort log file columns and count them. awk sort uniq count example awk column...

linux grep regex examples

Grep regex matches the search content according to the specified rule pattern, which can help us find the content we need precisely. Syntax: grep -E...