Which of the following UNIX command is used for pattern matching ?
grep UNIX command is used for pattern matching.
UNIX is a family of multitasking, multiuser computer operating systems that derive from the original AT&T UNIX, development starting in the 1970s at the Bell Labs research center by Ken Thompson, Dennis Ritchie, and others.
The grep (Global Regular Expression Print) is a UNIX command utility that can be used to find specific patterns described in “regular expressions”.
Example:- the “grep” command can be used to match all lines containing a specific pattern.
The grep command is used to search text or searches the given file for lines containing a match to the given strings or words. By default, grep displays the matching lines. Grep is considered to be one of the most useful commands on Linux and Unix-like operating systems.