How to count using the grep command in Linux/Unix
linux grep count * ; - grep count lines; - grep count words; - grep count files; - grep count sort; - grep two words...
linux grep command – grep not include, grep reverse match
There is also a case where we need to exclude certain content when we do content search. How to achieve it? Still linux grep command!...
linux grep command – grep only show match
When we search for content, sometimes we just need to show matching content. At this time we can use the grep command. linux grep You...
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...
linux grep command – grep multiple patterns
The last article 《grep or condition, grep and condition》 introduced grep and, or use, including the use of the -e parameter. Here is a detailed...
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...
linux grep or , grep and , grep not condition examples
Linux grep conditional; Grep OR:
1. Use regular, grep -E "[A|B]";
2. Use -e,grep -e "A" -e "B"; Grep AND:
Use pipe,...
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...
AWK tutorial: split on character awk or cut
In the previous article, we introduced the use of linux awk for string cutting. Here we introduce a method. use awk -F parameter use awk...
AWK tutorial: awk [-F] print example
- awk print last field
- print line number per line
- print specific columns
- use -F specifies a delimiter...
AWK tutorial: awk remove last character
awk remove last character use awk length and substr functions...
awk command tutorial in linux/unix with examples and use cases
linux awk tutorial: syntax, options, workflow, built-in variables, built-in functions, custom functions, conditional judgment, and usage examples....
linux find command tutorial: find syntax and examples
linux find – search for files in a directory hierarchy. syntax examples use find command – find file find – type filter explanation where x...
AWK tutorial: awk save to file
AWK save to file AWK append to file...