What is used to search files for specified words or patterns?

Options
- less
- srch
- %src
- grep


CORRECT ANSWER : grep

Discussion Board
Explanation-

In Linux, grep command is used to search a pattern in one or more files directly from the command line.

Syntax:
grep [OPTIONS] PATTERN [FILE...]

PATTERN as a mandatory argument. The OPTION and FILE arguments are non-mandatory. While the OPTION argument tells the grep command to act in a way as specified by the definition of that OPTION, the FILE argument tells the grep command about the files in which the pattern needs to be searched.

Sapna 03-3-2017 05:47 AM

Write your comments

 
   
 
 

Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement