0 votes
in Linux by
Explain grep command.

1 Answer

0 votes
by

Explain grep command.

Grep stands for Global Regular Expression Print. The grep command is used to search for a text in a file by pattern matching based on regular expression.

Syntax: grep [options] pattern [files]

Example:

$ grep -c "linux" interview.txt

This command will print the count of the word “linux” in the “interview.txt” file.

Related questions

0 votes
+1 vote
+1 vote
asked Feb 20, 2021 in Linux by SakshiSharma
0 votes
asked Nov 20, 2020 in JQuery by sharadyadav1986
...