Level 9 Level 11
Level 10

103.2 Process Text Streams Using Filters


29 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
cat
A tool used to combine files (concatenate). Commonly used to display a single file as well
fmt
reformats streams or files for display as indicated (WIDTH of columns)
join
Joines lines of two files based on a common filed or delimintor
pr
Convert files for printing (adds header and footer and sets breaks)
split
Split a file into pieces
split -l 2 file.txt name
split file.txt every two lines, output namea nameb
unexpand
Converts spaces to to tabs
expand
Converts tabs to spaces
cut
Used to remove sections from each line of files
head
Output the first part of a file
head -c XX
Output the first XX bytes of a file
head -n XX
Output the first XX lines of a file
nl
Add line numbers to a file for display or redirect to another file
sed
Stream editor for filtering and formatting text
sed 's/ugly/beautiful/g' myfile.txt
‘beautiful’ in myfile.txt"
regex
standard encompasses tools like sed, awk, grep, egrep, ed, etc"
tail
Output the last part of a file
tail -c XX
Output the last XX bytes of a file
tail -n XX
Output the last XX lines of a file
uniq
Report or omit repeated lines
uniq -d
Only print duplicate lines
uniq -u
Only print unique lines
uniq -r
Recursive option for uniq command
od
Dump files in octal format
paste
Merge lines of files
sort
Sorts forward/revers contents by alpha/numeric characters
tr
Translate/squeeze/delete characters from standard input writing to output
tr test blah < test
sends contents of test file to standard input and trims out the blah contents
wc
Gives the wordcount of a file