Post Exam 1 Flashcards
tee
capture the output of a command and save it to a file while seeing the output on your screen
command | tee fileName
cat > fileName
create the file and manual entry the contents
cat > filename (file created)
file information
file information
file information
cat file1 file2
combine and display both files
can be used to combine the files and save the result
cat file1 file2 > newfile
paste
command that combines files side by side
file1line1 file2line1
file1line2 file2line2
file1line3 file2line3
paste -d
command that combines files side by side with a delimiter option. The delimiter allows a different separator (other than tab) between the columns.
Ex: paste -d ‘,’
find
command to find a file or directory by name
file /location/directory -name “searchcriteria”
paste -s
command that combines files side by side with an option. -s cases files to be pasted one after the other instead of in parallel.