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 et with in 3 characters 1st field first 10 ascending have no Hungary nor Austria File test.txt Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa quae ab illo inv ntore veritatis et quasi arc cto beatae vitae dic sunt, explicabo. no enim ipsam voluptatem, quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos, qui ratione voluptatem sequi nesciunt, neque porro quisquam est, qui dolorem ipsum, quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt, ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit, qui in ea voluptate velit esse, quam nihil molestiae consequatur, vel illum, qui dolorem eum fugiat, quo voluptas nulla pariatur? At vero eos et accusamus et iusto odio dignissimos ducimus, qui blanditiis praesentium voluptatum deleniti atque corrupti, quos dolores et quas molestias excepturi sint, obcaecati cupiditate non provident, similique sunt in culpa, qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio, cumque nihil impedit, quo minus id, quod maxime placeat, facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet, ut et voluptates repudiandae sint et molestiae non recusandae. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat. File city.txt Belgrade Serbia 1166763 Budapest Hungary 1759407 Warsaw Poland 1748916 Vienna Austria 1867960 Munich Germany 1521678 Rome Italy 2874038 Madrid Spain 3165235 Barcelona Spain 1602386 Milan Italy 1368590 Bucharest Romania 2106144 Berlin Germany 3671000 Vienna Austria 1867960 Paris France 2241346 Budapest Hungary 1759407

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

Database Systems An Application Oriented Approach Complete Version

Authors: Michael Kifer, Arthur Bernstein, Richard Lewis

2nd Edition

0321268458, 978-0321268457

More Books

Students also viewed these Databases questions

Question

answer and draw the result

Answered: 1 week ago

Question

a sin(2x) x Let f(x)=2x+1 In(be)

Answered: 1 week ago

Question

Identify cultural barriers to communication.

Answered: 1 week ago