1.5 Cut command--split file
Cut-d:-F 3/ETC/PASSWD take 3rd paragraph
1.6 Sort Command--sort
SORT-T:-k3/etc/passwd sorted by 3rd paragraph
-N Sort by number
-R Reverse Order
-U Remove Duplicate entries
1.7 WC Command
-L Calculation of rows
-W Computed character segments
-M computed characters
1.8 Uniq and Tee
Uniq to repeat
-C calculates the number of repetitions
Sort 2.txt | Uniq-c
Tee redirects and displays
1.9 TR and split
TR Lowercase conversion Uppercase
echo "ABCD" | Tr ' b-f ' b-f '
Split cutting Large files
Split-b 50m 1.txt by size
Split-l 1.txt by number of rows
2.0 connectors (and, and, or)
&& execute the following command before execution succeeds
|| Or if the previous execution is unsuccessful, the following command will be executed
, and both front and back are executed
2.1 grep Filter
--color keyword highlighting
-N Display Line number
-C Displays the number of rows
-V takes the reverse, excluding the line of the keyword
-A 3 3 rows below the keyword line
-B 3 more than 3 rows on the keyword line
-C 3 keyword line up and down to display 3 rows
-R Find all files under a directory
Getting Started with Shell programming