Unix relies heavily on filters to sort files and search for keywords in a file. A filter is a command that takes some input, transforms the data and sends it out as output. We will look at the following in this section:
awk
: Pattern scanning and processinggrep
: Search for a keywordhead
: Display the beginning part of a filesort
: Sort informationtail
: Display the last part of a filetee
: Record data to standard output
- Find all occurences of the word "important" in any of the files in your home directory.