Answered step by step
Verified Expert Solution
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) 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.
- (4) Do the following:
- 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.
- 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.
- 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.
- 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
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