Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions

Question

Set up limits for the Rbar chart, given Rbar = 12 and n = 3.

Answered: 1 week ago

Question

5 5 6 . .

Answered: 1 week ago