103.2 Process Text Streams with Filters Flashcards
Text Streams
sort numerically or alphabetically starting by default at column 0
sort
Text Streams
numbering the lines in a file or input stream can be all lines or just lines with data
nl
Text Streams
abbreviation for word count but can do a lot more
wc
Text Streams
changes tabs in file to specific number of spaces - default 8
expand
Text Streams
command that will allow the extraction of field(s) or column(s) of data from a particular location in the indicated file
cut
Text Streams
combines two files together without removing any data - concat style
paste
Text Streams
combines two files together but removes redundant fields (database style) based on the first field (key)
join
Text Streams
allows you to extract only ‘unique’ lines of data from a file
uniq
Text Streams
similar to cat command in that it will display contents of a file but displays only a certain number of lines form the top - default 10
head
Text Streams
similar to cat command in the it will display contents of a file and it is the oppisite of the head command - only displays a certain number of lines from the bottom of the file - default 10
tail
Text Streams
allows you to take a file with a number of records and split it into multiple files that contain part of the original data
split
Text Streams
display a file - top to bottom in full to standard output
cat
Text Streams
same as cat but in reverse
bottom to top in full to standard output
tac
Text Streams
allow save display of binary file to standard output terminal with having to recover with a clear or rest of terminal
od
Text Streams
commonly used to format a source file or other text only files to be printed and adds a header with the date of job, the file and pagination (page number at top)
pr