Question 146Asked in DSSSB TGT Computer Science, 24 Jun 2023, Shift 3 (4:30 PM)
Grep command is used to:
Achange the case of alphabets
Bsearch for a specific pattern from a specified file and display those lines containing the pattern
Ccut the columns fields of a specified file
Dredirect the output of one command to another command
Show answerHide answer
Correct answer: (B) search for a specific pattern from a specified file and display those lines containing the pattern
Explanation
grep (global regular expression print) searches files for a pattern and prints the matching lines. tr changes case, cut extracts columns, and a pipe redirects output.
From DSSSB TGT Computer Science PYQ, 24 Jun 2023, Shift 3 (4:30 PM)