CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Which of the following UNIX command is used for pattern matching ?

A
awk
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
pattern
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
grep
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
join
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is C grep

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.


flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Database Structuring
ACCOUNTANCY
Watch in App
Join BYJU'S Learning Program
CrossIcon