Which one of the following command is used for searching for a pattern in one or more file(s)?

Which one of the following command is used for searching for a pattern in one or more file(s)?
A. cd
B. cp
C. paste
D. grep
 
Answer: d
Explanation: UNIX has a special family of commands for handling search requirements, and the principal member of this family is the grep command. This command scans its input for a pattern and displays the lines containing the pattern, the line numbers or filenames containing the pattern.
 

Tìm kiếm

Back
Top