How to Use Grep in Linux in Hindi | Grep Command Tutorial with Examples | Linux Grep Questions
ฝัง
- เผยแพร่เมื่อ 3 ก.ค. 2024
- #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
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 TH-camr gave the best examples to understand easily with a series of examples.
Thanks for sharing!
Very helpful video, good explanation with examples
probably the best video ever seen on grep sharing it on twitter.
Thanks buddy!
Very much detailed cases of grep command. Thank you !!
You are welcome!
great explanation clear all doubts
Glad to hear that!
Best man! Top notch explanation with scenarios 🎉
Glad you liked it!
i am deploma student and this videos helps me to getting output for my practical manual thankyou so mach to create just amezing contant
Keep learning and keep growing!!
Apke jaisa details me koi nahi shikata thank you 😊❤️🔥 or subscribe bhi kar diya channel ko 😉
Thank you for the feedback!
Wonderful tutorial.
Please make another video for awk command.
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
Thanks for the feedback!
Glad to hear that :)
Very Helpful video. Thank you
Glad it was helpful!
Thank you for teaching!😊
Any time!
Thank you bhai 23 min mai khuch naya sheek liya maine.
Glad to hear that!!
Beautiful explanation ❤
Thanks for the feedback
Brother your videos is very helpfull to me. I am learning Linux by watching your videos. Thsnks
Keep it up!!!!
You are a saviour bhai
Glad it was helpful!
Another awesome tutorial Sir....😇😍😊
Thank you 😊
Classy explanation sir...
Hats off
Thanks a ton
Best video❤
Amazing session! 👏
Glad you enjoyed it!
Sir it was very important for me. 🙏
Glad to hear that!
You are doing great work to the society !! Just fan of you and your dedication towards teaching !!
It's my pleasure!!
Prashanth bhai .. zabardast samjhare aap !!!
Thank you!
Very helpful...Keep up the good work
Thank you, I will
Great effort sir...the way you are explaining is splendid..👍
Thanks a ton!
Really helpful!!!
Glad it helped!
Excellent sir ... thank you for making on grep video 👌👌
Thank you, Glad it was helpful!
@@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
Yes 👍👍👍 I luv 🍇🍇
Create one video for the FIND command.
Thanks 🙏
FIND Command video already uploaded - th-cam.com/video/QEwfMpgxQIU/w-d-xo.html
Super bro its a great learning ❤
Thank you!
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 🙂👍🏻
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".
@@MPrashant 😃👌🏻👌🏻
Wonderful session
thank you!
Thanks for teaching the content very clearly. You got a new subscribe 😉
Thanks for the feedback and welcome to this channel 😀
No doubt you are explaining very well... Will pray for you to reach millions of subscribers
Thank you so much for your wishes!
....Sir your learning style is Better than colleges teachers
Thanks for the feedback!
Hi brother/sir
Really great work, full support to you keep going😊🎉
Thanks a ton!
Thank You Brother..
Welcome!
Very helpful sir ji
😊😊
Thank you sir ..
Thanks ❤️
Thank You ☺
You're welcome 😊
awesome video sir
Thank you!
♥️
Great content !!
thanks!
Good content , thanks
You're welcome!
Superb bhai
Thanks!
Thanks sir ji
😊😊
very good... pls share vmware videos linux
Great 👍
Thank you 👍
❤🎉
Very helpfull
Glad it helped
Nice teaching 👍
Thanks for liking
Great 🤗🤗
Thanks!
Thanks it means a lot for your support and guidance for youth generation 👍
It's my pleasure!
Broooooo supbbbb.... 👏🙏
Thanks 🤗
Thanks sir for the qaulty cantent
Kiep larnig
Glad to hear that!
Hello... Can you please detailed video on Deployment? I'm watching you videos and are explaining it very well.. Thank you!!
Thanks for the feedback!
I will try to make one soon on deployment
@@MPrashant Thank you, eagerly waiting for your video!!! 🙂
GREAT CONTENT. PLEASE MAKE DETAILED VIDEO ON SHELL SCRIPTING
Thanks!
Already uploaded on channel - th-cam.com/video/M6nZpfIIFEM/w-d-xo.html
Sir vmware related lecture (tutorials ) bhi upload kre na
Comprehensive
Sir your teaching way is very good
Could you please make one playlist for awk command for bigners
Thanks for the feedback.
I will try😊
Thank you sir...... Sir please can you make on Fgrep command video
sure, I will try..
Sir can you give some practice Questions
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.
Thanks for the feedback!
You can use zgrep for the zipped files
You explain very nicely but a small suggestion from my side is zoom your screen while teaching.becz not able to see your terminal 😌
Thanks for the feedback and suggestion 😀
Awesome 🖤🤍
Thanks 🔥
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?
In a directory no. of files having same values taken for a parameter..How to grep this data in a single txt file?
Hi Prashant
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?
make proper playlist on ansible please
Hello sir..
I am watching your videos regularly..thay
Grep -f not working
Hello,
Can you please make video on shellscripting in detail
Already uploaded two videos
Part1 - th-cam.com/video/M6nZpfIIFEM/w-d-xo.html
Part2 - th-cam.com/video/VAGVFfkE-kQ/w-d-xo.html
Please let me know if you are looking for additional topics, so I can cover in next part
Kindly linux web server security topic par vedio bnaye kese hum linux server ko secure kr skte hey. Thanks
Sure I will try
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.....
Thanks for the feedback!,
Just use this online tool extendsclass.com/csv-generator.html
to create file on a click :)
@@MPrashant thank you...mai chala practice krne🤓
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
Plz share csv files for practice purpose
How to search a file only using keyword .
But you have used the file name with -l. [opation]
Can you one video on SSH
Soon😊
can i find his video on awk and sed command?
SED - th-cam.com/video/ETF6CapGAvc/w-d-xo.html
AWK - th-cam.com/video/dcF5Rqw_VZ4/w-d-xo.html
Please provide us pdf of commends and it's meaning n fullform
bhaiya zgrep; mujhe interview me puch liya ye😢😢
Failed to establish connection a raha hai jab file ko put kiye to
login successfully ho gya h but file transfer ni ho rhi, right?
can you paste here full error message you see
hii brother, can we use grep command on a zip files
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)
brother, how we can count a word in a line?
one way is to first select a line using awk or sed then using wc we can get words
@@MPrashant i didn't want to count the words in the line, i want to count a word in a line.
since you don't share the csv file this video is pretty much useless.
check in description first
@@MPrashant I can't see any files in description. Why don't u share them?
Link for the Slides - docs.google.com/presentation/d/1KimpyPD9_RYY2-zjMt9V1_2s9e0QPSnrYsk5F1jTrDs/edit?usp=sharing
@@MPrashant I am asking for the csv1 file you used to illustrate grep.
@@viratsharma8036 what do you mean by sharing?? As I already provided the link of the slide
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
}
]
}
.
you can try
grep -i "workspaceid" json.txt | awk -F: '{print $2}'