Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 675 Bytes

unix_filters.md

File metadata and controls

15 lines (11 loc) · 675 Bytes

Unix filters

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 processing
  • grep : Search for a keyword
  • head : Display the beginning part of a file
  • sort : Sort information
  • tail : Display the last part of a file
  • tee : Record data to standard output

Exercises

  1. Find all occurences of the word "important" in any of the files in your home directory.