Commands
1. tr
trtr – translate characters
e.g.
tr ':' '\n' <<< "$PATH"-d: Delete characters in string from the input.
2. cut
cutThe default field delimiter for
cutis (tab).
cut – cut out selected portions of each line of a file
e.g.
-d delim: Use delim as the field delimiter character instead of the tab character.-f list: The list specifies fields, separated in the input by the field delimiter character (see the-doption). Output fields are separated by a single occurrence of the field delimiter character.
3. tee
teetee – duplicate standard input
The tee command is used to read from standard input and write to both standard output and one or more files simultaneously.
e.g.
Send the echoed message to both stdout and to the output.txt file:
4. grep
grep-v, --invert-match: Selected lines are those not matching any of the specified patterns.-r, -R, --recursive: Recursively search subdirectories listed. (i.e., force grep to behave as rgrep).-i, --ignore-case: Perform case insensitive matching. By default, grep is case sensitive.-E, --extended-regexp: Interpret pattern as an extended regular expression (i.e., forcegrepto behave asegrep).
Use pattern:
Match empty lines:
5. find
find5.1. find + -exec
find + -exec5.2. find + xargs
find + xargsE.g.
Last updated