Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need them answered please Practice Using CAT, LESS, HEAD, TAIL, SORT, UNIQ Read CHAPTER 20 : Shotts for help in using these commands. Using

image text in transcribed
image text in transcribed
i need them answered please
Practice Using CAT, LESS, HEAD, TAIL, SORT, UNIQ Read CHAPTER 20 : Shotts for help in using these commands. Using either GEDIT or VI, create the following text file. The example below uses GEDIT. Open a terminal window and enter gedit foo.txt-then enter the following data: foo foo WOO Using this foo.txt file enter the command required to answer the questions below. The first two are done for you. - use CAT, LESS, HEAD, TAIL, SORT and/or UNIQ Activity 1. Use CAT to list the contents of 'foo.txt' Command Line cat foo.txt 2. Use CAT and pipe the output to LESS to paginate the output of 'foo.txt cat fre.txtiless 3. Use HEAD to output the first 10 lines of "foo.txt 4. Use CAT and pipe the output to HEAD to print out the first 10 lines of "foo.txt 5. Use TAIL to print out the last 10 lines of "foo.txt' 6. Use HEAD to print out the first 3 lines of "foo.txt 7. Use CAT and SORT to output foo.txt' in sorted order. 8. Use SORT (only) to output 'foo.txt' in sorted order. 9. Use SORT and pipe to UNIQ to output only the unique entries in sorted order in 'foo.txt'. 10. Use CAT and pipe to ws7 to get a count of the number of entries in 'foo.txt' 11. Use SORT and pipe to UNIQ with the -c switch to output a list of duplicate lines preceded by the number of times the line occurs. Your output should look something like this: 2 coo 3 foo 1 moo 12. Use SORT and pipe to UNIQ with the -d switch to output only repeated lines, rather than unique lines. Your output should look something like: Coo

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

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions

Question

6 Discuss laws affecting collective bargaining.

Answered: 1 week ago

Question

Analyse the various techniques of training and learning.

Answered: 1 week ago