The tools listed in this section are commonly used for text processing. Unless otherwise noted, these commands take input from standard input (if applicable) and print the result to standard output.
Many of these commands use regular expressions. The syntax of regular expressions is described in “Regular Expressions Unfettered.” For additional usage notes specific to individual applications, see the manual page for the command itself.
Tool | Description |
|---|---|
Short for Aho, Weinberger, and Kernighan; a programming language in itself, used for text processing using regular expressions. This is described further in “How awk-ward.” | |
Short for Global [search for] Regular Expressions and Print; prints lines matching an input pattern (optionally with a specified number of lines of leading and/or trailing context). The Common variants include | |
Prints the first few lines from a file (or standard input). The number of lines can be specified with the | |
A programming language whose scripts can be easily embedded in shell scripts using the | |
Short for stream editor; performs more complex text substitutions using regular expressions. | |
Sorts a series of lines. By default, | |
Prints the last few lines from of a file (or standard input). The number of lines can be specified with the | |
Copies standard input to standard output, saving a copy into a file (or multiple files). | |
Replaces one character with another. | |
Filters out adjacent lines that match. |
Last updated: 2008-04-08