Text Manipulation Commands

Linux has some great command line tools. These ones excel at text manipulation.

awk Perform functions on text arranged in fields
cut Extract specific columns from lines of text
diff Perform a line by line comparison of two text files
expand Convert tab stops to spaces
expr Extract part of a string from another string.
fmt A simple paragraph formatter
grep Extract lines of text from a file containing a certain text string.
head Display the first n lines from a file
lex Perform lexical analysis of a text stream
paste Convert a single text column into multiple columns
roff Text formatter
sed Non interactive text line editor
test Compare two strings for equality
tr Replace selected characters in a file
wc Count the number of lines, words, or characters in a file.

Leave a Reply