Text viewing and processing tools

From LQWiki
Jump to: navigation, search
  • awk - A utility and scripting language
  • cat - Con-cat-enate file(s) to stdout
  • cut - Extract portions of lines
  • diff - Compare differences of files
  • ed - The editor. ED!
  • egrep - See grep
  • fgrep - See grep
  • grep - Global/regular expression/print (print lines matching an expression)
  • head - View the top of a file
  • less - A more powerful pager
  • more - A less powerful pager
  • nl - Number lines of files
  • sed - Stream editor (non-interactive programmatic editor)
  • sort - Sort input
  • tac - Cat lines in reverse
  • rev - Cat characters in reverse
  • tail - View the bottom of a file
  • tr - Transform/transliterate text
  • uniq - Manipulate duplicate lines of a sorted file

Text processors in file utils' clothing

  • basename - cut a line to the right from the last slash (works with any input)
  • dirname - cut a line to the left from the last slash (works with any input)