Wc:word Count
WC [OPTION] ... [FILE] ...
-l:lines
-w:words
-c:bytes
Cut: Text Capture tool
Cut OPTION ... [FILE] ...
OPTION:
-D CHAR: Delimiter with the specified character;
-F Fields: the selected field;
#: The specified single field;
#-#: multiple consecutive fields;
#,#: discrete multiple fields;
Sort: Text Sorting tool
Sort [OPTION] ... [FILE] ...
-N: Based on the value of small sorting rather than character sorting;
-T CHAR: Specifies the delimiter;
-K #: The field used to sort the alignment;
-R: Reverse order;
-F: Ignore character case;
-U: Duplicate lines are reserved only one copy;
Repeating rows: continuous and identical;
Uniq: report or remove duplicate rows
Uniq [OPTION] ... [INPUT [OUTPUT]]
-C: Count the number of repetitions per row;
-U: Displays only rows that have not been duplicated;
-D: Displays only the rows that have been repeated;
diff: Compare differences in file content by line
diff [OPTION] ... FILES
Diff/path/to/oldfile/path/to/newfile >/path/to/patch_file
-U: Using the unfied mechanism, the limit is the context of the row to be modified, the default is 3 rows;
Patch: Patching Files
Patch[options]-i/path/to/patch_file/path/to/oldfile
Path/path/to/oldfile </path/to/patch_file
Common text viewing and processing tools for Linux