Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Give a single pipeline, using the head and the tail commands to: a . select lines 5 to 1 0 from a file b .

Give a single pipeline, using the head and the tail commands to:
a. select lines 5 to 10 from a file
b. select second-to-last line (i.e. the line before the last line) from a file
2.[2] How do you display a list of all processes where processes with the same name are grouped together?
3.[2] How do you display the total number of processes started by the root user?
4.[2] How do you list the ordinary files in your current directory that are not user-writable?
5.[2] What is the significance of this command?
grep -l "`echo '\t'`"*
6.[2] Are the following commands equivalent? Briefly explain.
grep "^[^a-z]" foo
grep -v "^[a-z]" foo
7.[2] Write a command to display all the lines in a given file that end with a ";" or a "." character.
8.[2] Write a command to change all and in file foo.html to and , respectively
9.[2] Write a command to delete all leading and trailing spaces in all lines of foo.
10.[2] Write a command to use sed to print all lines in foo that beginning and ending with a dot

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions