The Three Musketeers of Linux: Text Processing Tools in the Command Line
The Three Musketeers of Linux grep -n:Print line numbers -A:After, print the N lines after the matched content -B:Before, print the N lines before the matched content -C:Center, print N lines before and after the matched content -E: Support extended regex, e.g., grep -E 'root|nginx' /etc/passwd -v:Invert the match -o:Only print the matched content -w:Exact … Read more