1. grep
====================== from Shell script Raiders =================================
- Search from file or standard input.
- -E (E) (equivalent to egrep ) + "Regular expression" + files
- - o (Output matching text only, can be used in conjunction with EGREP)
- - C (Number of rows matched) * * * " egrep-o" Regular expression "| wc-1 "------Statistics match Total quantity
- - L (shows a matching file)
- - b (byte offset, generally combined with-O)
- - I. (Ignoring case)
- - Q (Silent output) View return status ($? : 0 is successful) to determine if the match is successful
***************************************************************
****************************************************************
****************************************************************
- Matching multi-mode: $ grep-e "regex1"-E "regex2" or grep-f file with multiple styles
- --include, --exclude (specify, exclude files); --color=auto (color)
- -A 3,-B 3,-c 3 (before, after, before the last 3 lines.) When matching multiple, delimiter:--)
- Filter files (0 value bytes as suffixes):$ grep "test" file*-lz | xargs-0 RM
========================================================================
2. Sed
3.find
4. SCP
5. Netstat
6. PS
Shell's common commands for work