Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help with the is command line using ubuntu unix/linux (1) The echo builtin copies its arguments to standard output which, by default, bash directs to

help with the is command line using ubuntu unix/linux

  1. (1) The echo builtin copies its arguments to standard output which, by default, bash directs to the screen. Write the command to redirect standard output (Sobell, page 138) of echo to write a short message (e.g., Hi there) to a file and then use cat to display the contents of the file.
  1. (4) Do the following:
    1. Write the command to redirect standard output of cat to create a file named days that holds the names of the days of the week in chronological order, one per line. Do not redirect standard input to cat; it will come from the keyboard. Remember to press CTRL-D on a line by itself to exit from cat.
    2. Use cat to read the days file and send it to standard output, through a pipeline, to standard input of the sort (Sobell, pages 58 and 145) utility. The result will be a list of days in alphabetical order.
    3. Replace sort in the preceding command with grep (Sobell, page 56) with an argument of (uppercase) T. The result will be a list of days that have an uppercase T in their names in chronological order.
    4. Create a filter (Sobell, page 146) by repeating the preceding command but sending standard output of grep through a pipeline to standard input of sort. The result will be a list of days that have an uppercase T in their names in alphabetical order.

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions