Linux Text Processing
17 functions
grepgrep [OPTION]... PATTERN [FILE]...Search for lines matching a pattern.
grep -rgrep -r PATTERN DIRRecursively search directories.
grep -Egrep -E REGEX FILESearch using extended regular expressions.
sedsed [OPTION]... SCRIPT [FILE]...Stream editor for transforming text.
sed s///sed 's/PATTERN/REPLACE/g' FILESubstitute pattern with replacement string.
awkawk 'PROGRAM' [FILE]...Pattern-based text processing language.
cutcut -d DELIM -f FIELDS FILEExtract specific fields from each line.
sortsort [OPTION]... [FILE]...Sort lines of text.
sort -usort -u FILESort and remove duplicate lines.
uniquniq [OPTION]... [INPUT [OUTPUT]]Remove consecutive duplicate lines.
wcwc [OPTION]... [FILE]...Count lines, words, and bytes.
headhead [-n N] [FILE]...Output the first N lines of a file.
tailtail [-n N] [FILE]...Output the last N lines of a file.
tail -ftail -f FILEFollow file and output appended data in real time.
trtr [OPTION]... SET1 [SET2]Translate or delete characters.
diffdiff [OPTION]... FILE1 FILE2Show differences between two files.
xargsxargs [OPTION]... [COMMAND]Build and execute commands from standard input.
