Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Familarize yourself with the commands cat, cut, tail, less, head, join, paste, nl, sed, grep, wc, sort, uniq, split. Prepare text files: - file test.txt
Familarize yourself with the commands cat, cut, tail, less, head, join, paste, nl, sed, grep, wc, sort, uniq, split. Prepare text files: - file test.txt with arbitrary text (see Appendix) - copy /etc/passwd file to the home directory cp /etc/passwd /pass.txt - file city.txt (see Appendix) Use the command line to complete the tasks: - Print files test.txt, city.txt and pass.txt - Print number of (A) in the files test.txt, city.txt and pass.txt - Print (B) from each line of pass.txt. Fields in the lines are separated with a colon. - Print (C) lines of the file pass.txt - Print city.txt sorted in (D) direction - Print city.txt replacing (E) - Print lines which (F) from city.txt - Split city.txt into several files, 3 lines per file
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started