Process text streams using filters Flashcards
What command will combine two or more text files into a single file?
cat - concatenate (eg cat first.txt second.txt > combined.txt)
What command joins two files by matching the contents of specified fields?
join - note uses the first field to match on
What command will merges files line by line?
paste
What command will convert tabs into spaces?
expand
What command can display non text files?
od
What command would order a file?
sort
Which command will break a file into smaller pieces?
split
Which command will change individual characters?
tr - translate
What command will convert spaces into tabs?
unexpand
What command will remove duplicate lines in a file?
uniq
What command will clean up paragraphs in a text file?
fmt - format
What command will number lines in a file?
nl - numbering lines
What command prepares a file for printing?
pr
What command shows the first 10 lines of a file?
head
What command shows the last 10 lines of a file?
tail