15 Free YouTube subscribers for your channel
Get Free YouTube Subscribers, Views and Likes

How to Use Linux Grep Command? | 15 UseCases of Grep Command

Follow
MPrashant Academy

#mprashant #linux

In this video I have covered about most widely used Linux Grep Command with lot of different examples.
Linux grep interview questions
Linux grep examples
Linux grep usage
Linux Interview questions on grep command


Link for the Slides https://docs.google.com/presentation/...

I have covered the following cases of grep command usage

To ignore the upper and lower case while searching using grep command in Linux
To search everything except given pattern/keyword using grep command in Linux
To print how many times (count) given keyword present in file using grep command in Linux
To search for exact match of given keyword in a file using grep command in Linux
To print the line no. of matches of given keyword in a file using grep command in Linux
To search a given keyword in multiple files using grep command in Linux
To suppress file names while search a given keyword in multiple files using grep command in Linux
To search multiple keywords in a file using grep command in Linux
To search multiple keywords in multiple file using grep command in Linux
To only print file names which matches given keywords using grep command in Linux
To get the keywords/pattern from a file and match with a another file using grep command in Linux
To print the matching line which start with given keyword using grep command in Linux
To print the matching line which end with given keyword using grep command in Linux
Suppose we have 100 files in a directory (dirA) and we need to search a keyword in all the files using grep command in Linux
We can use egrep command for the multiple keywords search using grep command in Linux
If you just wanna search but don't want to print on terminal or If you want to suppress error message using grep command in Linux

00:00 Intro
02:13 Case1: To ignore the upper and lower case while searching using grep command in Linux
03:18 Case2: To search everything except given pattern/keyword using grep command in Linux
04:04 Case3: To print how many times (count) given keyword present in file using grep command in Linux
04:59 Case4: To search for exact match of given keyword in a file using grep command in Linux
05:53 Case5: To print the line no. of matches of given keyword in a file using grep command in Linux
06:25 Case6: To search a given keyword in multiple files using grep command in Linux
07:03 Case7: To suppress file names while search a given keyword in multiple files using grep command in Linux
07:37 Case8: To search multiple keywords in a file using grep command in Linux
08:44 Case9: To only print file names which matches given keywords using grep command in Linux
09:20 Case10: To get the keywords/pattern from a file and match with a another file using grep command in Linux
10:35 Case11: To print the matching line which start with given keyword using grep command in Linux
11:50 Case12: To print the matching line which end with given keyword using grep command in Linux
13:14 Case13: Suppose we have 100 files in a directory (dirA) and we need to search a keyword in all the files using grep command in Linux
14:35 Case15: If you just wanna search but don't want to print on terminal or If you want to suppress error message using grep command in Linux



grep command
linux grep
linux grep command
linux grep tutorial
grep tutorial
how to grep in linux
grep tutorial linux
linux grep examples
grep
how to use grep command in linux
grep linux
grep command linux
linux grep explained
grep unix
grep command in linux
find grep
how to grep
how to use grep
how to grep on mac
grep syntax
grep summary
grep regular expression
grep examples
how to use grep command
grep command tutorial
grep in linux
best grep command tutorial

posted by korsstingw0