Give an example of a command that uses grep

a. With both input and output redirected.
b. With only input redirected.
c. With only output redirected.
d. Within a pipeline.


a. $ grep \$Id < *.c > id_list
b. $ grep -i suzi < addresses
c. $ grep -il memo *.txt > memoranda_files
d. $ file /usr/bin/* | grep "Again shell script" | sort -r

Computer Science & Information Technology

You might also like to view...

Which of the following is true regarding VBScript classes?

a) Private class variables are not modifiable at runtime b) Private class variables can only be modified by Property Get methods c) Property Get and Property Set are Private methods. d) The Property Let method is used for non-object subtypes

Computer Science & Information Technology

Which of the following is NOT a common Office 2013 gesture?

A) Tap and move your finger to move objects in a document. B) Swipe to zoom out on a document. C) Tap objects to select them. D) Pinch to zoom in on a document.

Computer Science & Information Technology

A(n) ________ command changes based on the SharePoint page you are viewing

Fill in the blank(s) with correct word

Computer Science & Information Technology

You can copy a macro stored in a document or template to another document or template

Indicate whether the statement is true or false

Computer Science & Information Technology