1. Write a command that removes the file junk and save any error messages in a f
ID: 3529897 • Letter: 1
Question
1. Write a command that removes the file junk and save any error messages in a file name errors. 2. Write a command that will print the number of lines in the file shortlist that contain the string clinton. 3. Write a command that will stores the number of lines in the file shortlist that contain the string clinton into a file name ccount. Unix command 4. Write a Unix command to display, byte by byte, the contents of the file named datafile. Make sure that for each byte the character and its numerical representation are displayed.Explanation / Answer
command that removes the file:
rm FILE(S) Remove FILE(S)
command that will print the number of lines :
wc -l my_text.txt
Command to print byte by byte:
od [-abcdfhiloxv] [-s[bytes]] [-w[bytes]] [-A radix] [-j bytes] [-N bytes] [-t type] [--skip-bytes=bytes] [--address-radix=radix] [--read-bytes=bytes] [--format=type] [--output-duplicates] [--strings[=bytes]] [--width[=bytes]] [--traditional] [--help] [--version] [file...]
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.