Processing Files Flashcards
cat
Displays a file on standard output (can be used to concatenate several files into one big file).
cut
Extracts specified sections from each line of text in a file.
dd
Copies blocks of data from one file to another (used to
copy data from devices).
diff
Compares two text files and finds any differences.
expand
Converts all tabs into spaces.
file
Displays the type of data in a file.
fold
Wraps each line of text to fit a specified width.
grep
Searches for regular expressions within a text file.
less
Displays a text file, one page at a time (can go backward also).
lpr
Prints files.
more
Displays a text file, one page at a time (goes forward only).
nl
Numbers all nonblank lines in a text file and prints the lines to standard output.
paste
Concatenates corresponding lines from several files.
patch
Updates a text file using the differences between the original and revised copy of the file.
sed
Copies a file to standard output while applying specified editing commands.