cat command
View text content or special control characters
cat -A
tr command
Convert and remove characters | Compress repeated characters
2.tr -d "\r" < win.txt > newfile.txt
3. Remove all percent signs or other specified symbols from a string tr -s "%" " "
cut command
cut -d specifies the cut symbol -f
cut -c1-9 splits on each character on each line, including space characters.
get data from a column
paste command
2. Vertically merge cat f1 f2
-d specifies the delimiter
-s merge each file into lines instead of pasting line by line
- For each ( - ), read data from the standard input once, use the space delimiter, and display it in a 6-column format with - - - - - - If three - - - are used, it will be displayed as 3 Column format display
wc command
By default, wc counts how many lines, how many words (a word separated by spaces) and how many bytes are in the file or output.
sort command
Get a column and sort this column
uniq command
Merge adjacent duplicate lines into one line
File content: less and cat
File interception: head and tail
Extract by column: cut
Extract by keyword: grep
vim command
1 :%s/xyz/&er/g replace xyz string with xyzer