Тёмный

How to Use Grep in Linux in Hindi | Grep Command Tutorial with Examples | Linux Grep Questions 

M Prashant
Подписаться 74 тыс.
Просмотров 79 тыс.
50% 1

#mprashant #linux #grep_command
🚀 My Bash Script PDF notes! 📚
Get yours at a special price of 39/- only! 🔥 👉 rzp.io/l/IEMRiGCj 💡
🚀My Linux Notes! 📚
Save your time and get Linux 150+ Commands cheatsheet at a special price of 49/- only! 🔥 👉 rzp.io/l/3pzXrDk 💡
grep command
find grep
grep tutorial
grep syntax
Linux grep tutorial
Linux Interview Questions on Grep
Linux Grep Interview Questions
Linux Grep Questions
15 Linux Grep Questions
Hello dosto,
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 - 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
03:32 Case1: To ignore the upper and lower case while searching using grep command in Linux
04:37 Case2: To search everything except given pattern/keyword using grep command in Linux
05:23 Case3: To print how many times (count) given keyword present in file using grep command in Linux
06:33 Case4: To search for exact match of given keyword in a file using grep command in Linux
07:48 Case5: To print the line no. of matches of given keyword in a file using grep command in Linux
08:42 Case6: To search a given keyword in multiple files using grep command in Linux
10:01 Case7: To suppress file names while search a given keyword in multiple files using grep command in Linux
10:43 Case8: To search multiple keywords in a file using grep command in Linux
12:06 Case8: To search multiple keywords in multiple file using grep command in Linux
12:50 Case9: To only print file names which matches given keywords using grep command in Linux
13:51 Case10: To get the keywords/pattern from a file and match with a another file using grep command in Linux
16:11 Case11: To print the matching line which start with given keyword using grep command in Linux
17:31 Case12: To print the matching line which end with given keyword using grep command in Linux
18:50 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
21:22 Case14: We can use egrep command for the multiple keywords search using grep command in Linux
22:54 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

Опубликовано:

 

24 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 167   
@kkahandal
@kkahandal Год назад
I bought a course on Udemy but the creator didn't explain "grep, egrep" with standard examples. That creator gave very few examples. But this RU-vidr gave the best examples to understand easily with a series of examples.
@MPrashant
@MPrashant Год назад
Thanks for sharing!
@prakashkankal3606
@prakashkankal3606 3 месяца назад
i am deploma student and this videos helps me to getting output for my practical manual thankyou so mach to create just amezing contant
@MPrashant
@MPrashant 3 месяца назад
Keep learning and keep growing!!
@jay-hu4xn
@jay-hu4xn 6 месяцев назад
Very helpful video, good explanation with examples
@farazmobin2776
@farazmobin2776 8 месяцев назад
probably the best video ever seen on grep sharing it on twitter.
@MPrashant
@MPrashant 8 месяцев назад
Thanks buddy!
@sandipmandavkar5037
@sandipmandavkar5037 11 месяцев назад
Apke jaisa details me koi nahi shikata thank you 😊❤️‍🔥 or subscribe bhi kar diya channel ko 😉
@MPrashant
@MPrashant 11 месяцев назад
Thank you for the feedback!
@pawaryash007
@pawaryash007 Год назад
Very much detailed cases of grep command. Thank you !!
@MPrashant
@MPrashant Год назад
You are welcome!
@monicabn3067
@monicabn3067 Год назад
Best man! Top notch explanation with scenarios 🎉
@MPrashant
@MPrashant Год назад
Glad you liked it!
@rohitchamle6556
@rohitchamle6556 Год назад
Thank you so much sir your all videos and concepts was very clearly explain 👍👍👍 Again Thanks for sharing this beautiful series it was very beneficial for me
@MPrashant
@MPrashant Год назад
Thanks for the feedback! Glad to hear that :)
@jayashreewaghachaure4714
@jayashreewaghachaure4714 18 дней назад
Very helpful video. Thank you!
@MPrashant
@MPrashant 14 дней назад
Glad!!
@akshayborse3127
@akshayborse3127 Год назад
Waiting for your famous line " Hi dosto ki haal chal"...Thanks bro!!! for removing that background music now more clear..Very Excellent explanation!! Keep going.. Thanks 🙂👍🏻
@MPrashant
@MPrashant Год назад
Thank you so much 😀 Appreciate your feedback about background music,,, I will bring back that line in the next video - " Hi dosto ki haal chal".
@akshayborse3127
@akshayborse3127 Год назад
@@MPrashant 😃👌🏻👌🏻
@keshavakumar9828
@keshavakumar9828 5 месяцев назад
Thank you bhai 23 min mai khuch naya sheek liya maine.
@MPrashant
@MPrashant 5 месяцев назад
Glad to hear that!!
@yogibrijkumar
@yogibrijkumar Год назад
Wonderful tutorial. Please make another video for awk command.
@user-ze3ye6dc3s
@user-ze3ye6dc3s 5 месяцев назад
dada , main ubuntu 22.04 use krta hu , usmain jb home directory jidhr located hai udr hi nye folders bnate hai automayically such as downloads , wallpapers , snap . mtlb user ki home directory main nahi bnte , kya kru?
@rajnaik8385
@rajnaik8385 11 месяцев назад
Best video❤
@faizanahmad3539
@faizanahmad3539 Год назад
Hi brother/sir Really great work, full support to you keep going😊🎉
@MPrashant
@MPrashant Год назад
Thanks a ton!
@ARIFKHAN-or7cx
@ARIFKHAN-or7cx 2 месяца назад
Thanks for teaching the content very clearly. You got a new subscribe 😉
@MPrashant
@MPrashant 2 месяца назад
Thanks for the feedback and welcome to this channel 😀
@saadahmadparacha
@saadahmadparacha 7 месяцев назад
Brother your videos is very helpfull to me. I am learning Linux by watching your videos. Thsnks
@MPrashant
@MPrashant 7 месяцев назад
Keep it up!!!!
@mozammilahmad8431
@mozammilahmad8431 Год назад
No doubt you are explaining very well... Will pray for you to reach millions of subscribers
@MPrashant
@MPrashant Год назад
Thank you so much for your wishes!
@wanderer_chethan3549
@wanderer_chethan3549 3 месяца назад
You are doing great work to the society !! Just fan of you and your dedication towards teaching !!
@MPrashant
@MPrashant 2 месяца назад
It's my pleasure!!
@ageshalbhandare2487
@ageshalbhandare2487 5 месяцев назад
....Sir your learning style is Better than colleges teachers
@MPrashant
@MPrashant 5 месяцев назад
Thanks for the feedback!
@TigerHills
@TigerHills Год назад
Prashanth bhai .. zabardast samjhare aap !!!
@MPrashant
@MPrashant Год назад
Thank you!
@sirajahmad6194
@sirajahmad6194 Год назад
Very Helpful video. Thank you
@MPrashant
@MPrashant Год назад
Glad it was helpful!
@amitpadhy6413
@amitpadhy6413 Год назад
Yes 👍👍👍 I luv 🍇🍇 Create one video for the FIND command. Thanks 🙏
@MPrashant
@MPrashant Год назад
FIND Command video already uploaded - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-QEwfMpgxQIU.html
@bhargobboro8417
@bhargobboro8417 Год назад
Thank you for teaching!😊
@MPrashant
@MPrashant Год назад
Any time!
@nileshnimje2534
@nileshnimje2534 Год назад
Another awesome tutorial Sir....😇😍😊
@MPrashant
@MPrashant Год назад
Thank you 😊
@Altruist-lk3
@Altruist-lk3 Год назад
Great effort sir...the way you are explaining is splendid..👍
@MPrashant
@MPrashant Год назад
Thanks a ton!
@88anand1
@88anand1 Год назад
Very helpful...Keep up the good work
@MPrashant
@MPrashant Год назад
Thank you, I will
@amolkachare4586
@amolkachare4586 Год назад
Excellent sir ... thank you for making on grep video 👌👌
@MPrashant
@MPrashant Год назад
Thank you, Glad it was helpful!
@amolkachare4586
@amolkachare4586 Год назад
@@MPrashant yes sir 👍 these videos really useful for me because Now I am doing software testing course so it's helpful for me... Thank you sir
@JustForFun-xs3ko
@JustForFun-xs3ko 19 дней назад
Thanks for the useful video. Kindly make a video on greping through zip and tar files using zgrep, etc. Also on log analysis and debugging.
@MPrashant
@MPrashant 18 дней назад
I have covered in this video.. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gkQHAy6Zdrg.html
@emmanualbhambal3387
@emmanualbhambal3387 3 месяца назад
Sir it was very important for me. 🙏
@MPrashant
@MPrashant 3 месяца назад
Glad to hear that!
@RahulBhatia-py1iv
@RahulBhatia-py1iv Год назад
Superb bhai
@MPrashant
@MPrashant Год назад
Thanks!
@SyedAliKazmi924
@SyedAliKazmi924 2 месяца назад
Beautiful explanation ❤
@MPrashant
@MPrashant 2 месяца назад
Thanks for the feedback
@sushrutwadnerkar5803
@sushrutwadnerkar5803 Год назад
Amazing session! 👏
@MPrashant
@MPrashant Год назад
Glad you enjoyed it!
@LIFE-hm8wp
@LIFE-hm8wp 4 месяца назад
In a directory no. of files having same values taken for a parameter..How to grep this data in a single txt file?
@jairammodi5431
@jairammodi5431 17 дней назад
thanks for explanation. easy to understand. how we can search in multiple zip file?
@dirtydeeds5093
@dirtydeeds5093 Год назад
You are a saviour bhai
@MPrashant
@MPrashant Год назад
Glad it was helpful!
@pruthirajjenamani437
@pruthirajjenamani437 Месяц назад
great explanation clear all doubts
@MPrashant
@MPrashant Месяц назад
Glad to hear that!
@yuvrajyadav8158
@yuvrajyadav8158 6 месяцев назад
Classy explanation sir... Hats off
@MPrashant
@MPrashant 6 месяцев назад
Thanks a ton
@amanvikram04
@amanvikram04 Месяц назад
Bro I have one requirement where I need to search in the file from two keyword pattern, means I need to get only the lines from two given keyword, any idea how to get that?
@vaibhavjadhav800
@vaibhavjadhav800 Год назад
Really helpful!!!
@MPrashant
@MPrashant Год назад
Glad it helped!
@Monasvlogmode
@Monasvlogmode Год назад
Broooooo supbbbb.... 👏🙏
@MPrashant
@MPrashant Год назад
Thanks 🤗
@AbdultalibShiekh
@AbdultalibShiekh Год назад
Sir vmware related lecture (tutorials ) bhi upload kre na
@rajesh1979100
@rajesh1979100 Год назад
very good... pls share vmware videos linux
@rohitchamle6556
@rohitchamle6556 Год назад
Thanks it means a lot for your support and guidance for youth generation 👍
@MPrashant
@MPrashant Год назад
It's my pleasure!
@kamakshipharkare
@kamakshipharkare Год назад
Thank you sir ..
@MPrashant
@MPrashant Год назад
Thanks ❤️
@pivot3india
@pivot3india Год назад
Great content !!
@MPrashant
@MPrashant Год назад
thanks!
@bhagyashripatil8528
@bhagyashripatil8528 Год назад
Wonderful session
@MPrashant
@MPrashant Год назад
thank you!
@extraSALT..
@extraSALT.. 9 месяцев назад
♥️
@pythonadda3718
@pythonadda3718 Год назад
Very helpful sir ji
@MPrashant
@MPrashant Год назад
😊😊
@arshadqureshi5997
@arshadqureshi5997 Год назад
Thank You Brother..
@MPrashant
@MPrashant Год назад
Welcome!
@Chintu_The_Mystic
@Chintu_The_Mystic Год назад
Super bro its a great learning ❤
@MPrashant
@MPrashant Год назад
Thank you!
@abadhutadas571
@abadhutadas571 Год назад
Great 👍
@MPrashant
@MPrashant Год назад
Thank you 👍
@vishaldeshmukh1166
@vishaldeshmukh1166 Год назад
Hello... Can you please detailed video on Deployment? I'm watching you videos and are explaining it very well.. Thank you!!
@MPrashant
@MPrashant Год назад
Thanks for the feedback! I will try to make one soon on deployment
@vishaldeshmukh1166
@vishaldeshmukh1166 Год назад
@@MPrashant Thank you, eagerly waiting for your video!!! 🙂
@sirajahmad6194
@sirajahmad6194 Год назад
Thank You ☺
@MPrashant
@MPrashant Год назад
You're welcome 😊
@devendrashamradholpur4675
@devendrashamradholpur4675 Год назад
awesome video sir
@MPrashant
@MPrashant Год назад
Thank you!
@prashantgabhane454
@prashantgabhane454 Год назад
Thanks sir ji
@MPrashant
@MPrashant Год назад
😊😊
@imharry404
@imharry404 Год назад
Great 🤗🤗
@MPrashant
@MPrashant Год назад
Thanks!
@vilen7856
@vilen7856 6 месяцев назад
❤🎉
@DBDilipOnly
@DBDilipOnly Год назад
Good content , thanks
@MPrashant
@MPrashant Год назад
You're welcome!
@lalitrao9897
@lalitrao9897 Год назад
Very helpfull
@MPrashant
@MPrashant Год назад
Glad it helped
@bhushandhande4666
@bhushandhande4666 4 месяца назад
Bhai, your teaching skills are excellent. covering each and every point. one doubt, how to search for keyword in zip files / multiple zip files ? i usually need to search keyword in zip files.
@MPrashant
@MPrashant 4 месяца назад
Thanks for the feedback! You can use zgrep for the zipped files
@amanwankhade3141
@amanwankhade3141 Год назад
Thanks sir for the qaulty cantent Kiep larnig
@MPrashant
@MPrashant Год назад
Glad to hear that!
@Harsh-yj9ly
@Harsh-yj9ly Год назад
Sir your teaching way is very good Could you please make one playlist for awk command for bigners
@MPrashant
@MPrashant Год назад
Thanks for the feedback. I will try😊
@ambadasbhise4878
@ambadasbhise4878 Год назад
Nice teaching 👍
@MPrashant
@MPrashant Год назад
Thanks for liking
@swamivivekananda-cyclonicm8781
Comprehensive
@gauravmishra7591
@gauravmishra7591 Год назад
GREAT CONTENT. PLEASE MAKE DETAILED VIDEO ON SHELL SCRIPTING
@MPrashant
@MPrashant Год назад
Thanks! Already uploaded on channel - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-M6nZpfIIFEM.html
@shivadasdey7019
@shivadasdey7019 11 месяцев назад
You explain very nicely but a small suggestion from my side is zoom your screen while teaching.becz not able to see your terminal 😌
@MPrashant
@MPrashant 11 месяцев назад
Thanks for the feedback and suggestion 😀
@sayedhssain702
@sayedhssain702 4 месяца назад
Bhaii ek aur problem ho rahi hai....mere paas Linux mint version hai...usme su - me password sahi enter krne pr bhi... authentication failure bata raha hai... mujhe uska solution nahi mil rha kya kru... help me
@subhrajitsaha1515
@subhrajitsaha1515 Год назад
Sir can you give some practice Questions
@amolkachare8191
@amolkachare8191 Год назад
Thank you sir...... Sir please can you make on Fgrep command video
@MPrashant
@MPrashant Год назад
sure, I will try..
@sayedhssain702
@sayedhssain702 4 месяца назад
Really nice...Bhai But Bhai ek request thi....kya aap apni wo file provide kr skte hai.. discription me...jisse aap practice krwa rhe hai.... kyunki mere paas aisi koi file nhi h...aur banaunga to bahut time lagega.....
@MPrashant
@MPrashant 4 месяца назад
Thanks for the feedback!, Just use this online tool extendsclass.com/csv-generator.html to create file on a click :)
@sayedhssain702
@sayedhssain702 4 месяца назад
@@MPrashant thank you...mai chala practice krne🤓
@bharathphotography1947
@bharathphotography1947 Год назад
Awesome 🖤🤍
@MPrashant
@MPrashant Год назад
Thanks 🔥
@user-dj8uz3ir7h
@user-dj8uz3ir7h 5 месяцев назад
Hi Prashant
@harshsharma3698
@harshsharma3698 Год назад
make proper playlist on ansible please
@mridulm8870
@mridulm8870 Год назад
Please provide us pdf of commends and it's meaning n fullform
@princessagent6377
@princessagent6377 Год назад
Hello sir.. I am watching your videos regularly..thay Grep -f not working
@amandeepsingh7873
@amandeepsingh7873 Год назад
Kindly linux web server security topic par vedio bnaye kese hum linux server ko secure kr skte hey. Thanks
@MPrashant
@MPrashant Год назад
Sure I will try
@nishitnathvaniblogger1572
@nishitnathvaniblogger1572 Год назад
can i find his video on awk and sed command?
@MPrashant
@MPrashant Год назад
SED - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ETF6CapGAvc.html AWK - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-dcF5Rqw_VZ4.html
@jijigaonkar4597
@jijigaonkar4597 Год назад
Plz share csv files for practice purpose
@hemantkakade4640
@hemantkakade4640 Год назад
Hello, Can you please make video on shellscripting in detail
@MPrashant
@MPrashant Год назад
Already uploaded two videos Part1 - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-M6nZpfIIFEM.html Part2 - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-VAGVFfkE-kQ.html Please let me know if you are looking for additional topics, so I can cover in next part
@externalpoint861
@externalpoint861 Месяц назад
bhaiya zgrep; mujhe interview me puch liya ye😢😢
@gouravdalavi9196
@gouravdalavi9196 Год назад
hii brother, can we use grep command on a zip files
@MPrashant
@MPrashant Год назад
with zip file you can zgrep zgrep test.tgz Note: It will not give you output from file because file is already compress to binary It will only show if the string/pattern is present inside the file (you can also use exit status $? to check the result)
@manishchaudhari1510
@manishchaudhari1510 10 месяцев назад
How to search a file only using keyword . But you have used the file name with -l. [opation]
@surajjha2900
@surajjha2900 Год назад
Can you one video on SSH
@MPrashant
@MPrashant Год назад
Soon😊
@mdadnan4156
@mdadnan4156 Год назад
Failed to establish connection a raha hai jab file ko put kiye to
@MPrashant
@MPrashant Год назад
login successfully ho gya h but file transfer ni ho rhi, right? can you paste here full error message you see
@piyushverma5417
@piyushverma5417 Год назад
brother, how we can count a word in a line?
@MPrashant
@MPrashant Год назад
one way is to first select a line using awk or sed then using wc we can get words
@piyushverma5417
@piyushverma5417 Год назад
@@MPrashant i didn't want to count the words in the line, i want to count a word in a line.
@viratsharma8036
@viratsharma8036 Год назад
since you don't share the csv file this video is pretty much useless.
@MPrashant
@MPrashant Год назад
check in description first
@viratsharma8036
@viratsharma8036 Год назад
@@MPrashant I can't see any files in description. Why don't u share them?
@MPrashant
@MPrashant Год назад
Link for the Slides - docs.google.com/presentation/d/1KimpyPD9_RYY2-zjMt9V1_2s9e0QPSnrYsk5F1jTrDs/edit?usp=sharing
@viratsharma8036
@viratsharma8036 Год назад
@@MPrashant I am asking for the csv1 file you used to illustrate grep.
@MPrashant
@MPrashant Год назад
@@viratsharma8036 what do you mean by sharing?? As I already provided the link of the slide
@simranbanwait
@simranbanwait Год назад
Hello prashant sir, i have this json type data from which i want to extract the WorkspaceId value using grep, can you please help . { "FailedRequests": [], "PendingRequests": [ { "WorkspaceId": "ws-cy8dtq8yn", "DirectoryId": "d-9067aa9a3a", "UserName": "Wolf", "State": "PENDING", "BundleId": "wsb-9yhf2dn87", "VolumeEncryptionKey": "045fe37b-5dec-4273-b6b0-ae225aa3001b", "UserVolumeEncryptionEnabled": true, "RootVolumeEncryptionEnabled": true } ] } .
@MPrashant
@MPrashant Год назад
you can try grep -i "workspaceid" json.txt | awk -F: '{print $2}'
Далее
Crossing the Most Dangerous Crosswalk
00:24
Просмотров 11 млн
СОБАКИ ГОЛОДАЮТ ИЗ-ЗА ЛЕРЫ 🥲
01:00
МОЙ НОВЫЙ ДОМ
1:01:04
Просмотров 880 тыс.
Linux Crash Course - The grep Command
14:57
Просмотров 100 тыс.
60 Linux Commands you NEED to know (in 10 minutes)
10:50