Это видео недоступно.
Сожалеем об этом.

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

Поделиться
HTML-код
  • Опубликовано: 13 авг 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

Комментарии • 167

  • @SyedAliKazmi924
    @SyedAliKazmi924 3 месяца назад +1

    Beautiful explanation ❤

    • @MPrashant
      @MPrashant  3 месяца назад

      Thanks for the feedback

  • @jayashreewaghachaure4714
    @jayashreewaghachaure4714 Месяц назад +1

    Very helpful video. Thank you!

  • @emmanualbhambal3387
    @emmanualbhambal3387 4 месяца назад +1

    Sir it was very important for me. 🙏

    • @MPrashant
      @MPrashant  4 месяца назад

      Glad to hear that!

  • @ARIFKHAN-or7cx
    @ARIFKHAN-or7cx 2 месяца назад +1

    Thanks for teaching the content very clearly. You got a new subscribe 😉

    • @MPrashant
      @MPrashant  2 месяца назад

      Thanks for the feedback and welcome to this channel 😀

  • @amanwankhade3141
    @amanwankhade3141 Год назад +1

    Thanks sir for the qaulty cantent
    Kiep larnig

  • @kkahandal
    @kkahandal Год назад +30

    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 RUclipsr gave the best examples to understand easily with a series of examples.

  • @vilen7856
    @vilen7856 6 месяцев назад +1

    ❤🎉

  • @Monasvlogmode
    @Monasvlogmode Год назад +1

    Broooooo supbbbb.... 👏🙏

  • @JustForFun-xs3ko
    @JustForFun-xs3ko Месяц назад

    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  Месяц назад

      I have covered in this video..
      ruclips.net/video/gkQHAy6Zdrg/видео.html

  • @pruthirajjenamani437
    @pruthirajjenamani437 Месяц назад +2

    great explanation clear all doubts

  • @jairammodi5431
    @jairammodi5431 Месяц назад

    thanks for explanation. easy to understand. how we can search in multiple zip file?

  • @bhushandhande4666
    @bhushandhande4666 5 месяцев назад +1

    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  5 месяцев назад

      Thanks for the feedback!
      You can use zgrep for the zipped files

  • @user-dj8uz3ir7h
    @user-dj8uz3ir7h 5 месяцев назад

    Hi Prashant

  • @externalpoint861
    @externalpoint861 Месяц назад +1

    bhaiya zgrep; mujhe interview me puch liya ye😢😢

  • @saadahmadparacha
    @saadahmadparacha 7 месяцев назад +1

    Brother your videos is very helpfull to me. I am learning Linux by watching your videos. Thsnks

    • @MPrashant
      @MPrashant  7 месяцев назад

      Keep it up!!!!

  • @bhargobboro8417
    @bhargobboro8417 Год назад +3

    Thank you for teaching!😊

  • @LIFE-hm8wp
    @LIFE-hm8wp 5 месяцев назад

    In a directory no. of files having same values taken for a parameter..How to grep this data in a single txt file?

  • @wanderer_chethan3549
    @wanderer_chethan3549 3 месяца назад +1

    You are doing great work to the society !! Just fan of you and your dedication towards teaching !!

    • @MPrashant
      @MPrashant  3 месяца назад

      It's my pleasure!!

  • @yuvrajyadav8158
    @yuvrajyadav8158 7 месяцев назад +1

    Classy explanation sir...
    Hats off

  • @harshsharma3698
    @harshsharma3698 Год назад

    make proper playlist on ansible please

  • @sirajahmad6194
    @sirajahmad6194 Год назад +1

    Very Helpful video. Thank you

  • @TigerHills
    @TigerHills Год назад +1

    Prashanth bhai .. zabardast samjhare aap !!!

  • @sayedhssain702
    @sayedhssain702 5 месяцев назад +1

    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  5 месяцев назад

      Thanks for the feedback!,
      Just use this online tool extendsclass.com/csv-generator.html
      to create file on a click :)

    • @sayedhssain702
      @sayedhssain702 5 месяцев назад

      @@MPrashant thank you...mai chala practice krne🤓

  • @dirtydeeds5093
    @dirtydeeds5093 Год назад +2

    You are a saviour bhai

  • @pawaryash007
    @pawaryash007 Год назад +1

    Very much detailed cases of grep command. Thank you !!

  • @amolkachare4586
    @amolkachare4586 Год назад +1

    Excellent sir ... thank you for making on grep video 👌👌

    • @MPrashant
      @MPrashant  Год назад

      Thank you, Glad it was helpful!

    • @amolkachare4586
      @amolkachare4586 Год назад +1

      @@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

  • @keshavakumar9828
    @keshavakumar9828 6 месяцев назад +1

    Thank you bhai 23 min mai khuch naya sheek liya maine.

    • @MPrashant
      @MPrashant  6 месяцев назад

      Glad to hear that!!

  • @vaibhavjadhav800
    @vaibhavjadhav800 Год назад +2

    Really helpful!!!

  • @sandipmandavkar5037
    @sandipmandavkar5037 Год назад +1

    Apke jaisa details me koi nahi shikata thank you 😊❤️‍🔥 or subscribe bhi kar diya channel ko 😉

    • @MPrashant
      @MPrashant  Год назад

      Thank you for the feedback!

  • @prakashkankal3606
    @prakashkankal3606 4 месяца назад +2

    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  4 месяца назад

      Keep learning and keep growing!!

  • @DBDilipOnly
    @DBDilipOnly Год назад +1

    Good content , thanks

  • @88anand1
    @88anand1 Год назад +2

    Very helpful...Keep up the good work

  • @arshadqureshi5997
    @arshadqureshi5997 Год назад +1

    Thank You Brother..

  • @Chintu_The_Mystic
    @Chintu_The_Mystic Год назад +1

    Super bro its a great learning ❤

  • @manishchaudhari1510
    @manishchaudhari1510 11 месяцев назад

    How to search a file only using keyword .
    But you have used the file name with -l. [opation]

  • @amitpadhy6413
    @amitpadhy6413 2 года назад +1

    Yes 👍👍👍 I luv 🍇🍇
    Create one video for the FIND command.
    Thanks 🙏

    • @MPrashant
      @MPrashant  2 года назад +1

      FIND Command video already uploaded - ruclips.net/video/QEwfMpgxQIU/видео.html

  • @ageshalbhandare2487
    @ageshalbhandare2487 5 месяцев назад +1

    ....Sir your learning style is Better than colleges teachers

    • @MPrashant
      @MPrashant  5 месяцев назад

      Thanks for the feedback!

  • @pythonadda3718
    @pythonadda3718 2 года назад +1

    Very helpful sir ji

  • @devendrashamradholpur4675
    @devendrashamradholpur4675 Год назад +1

    awesome video sir

  • @lalitrao9897
    @lalitrao9897 Год назад +1

    Very helpfull

  • @prashantgabhane454
    @prashantgabhane454 2 года назад +2

    Thanks sir ji

  • @bhagyashripatil8528
    @bhagyashripatil8528 Год назад +1

    Wonderful session

  • @amanvikram04
    @amanvikram04 2 месяца назад

    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?

  • @jay-hu4xn
    @jay-hu4xn 7 месяцев назад +1

    Very helpful video, good explanation with examples

  • @sirajahmad6194
    @sirajahmad6194 Год назад +1

    Thank You ☺

  • @mdadnan4156
    @mdadnan4156 Год назад +1

    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

  • @kamakshipharkare
    @kamakshipharkare 2 года назад +1

    Thank you sir ..

  • @abadhutadas571
    @abadhutadas571 Год назад +1

    Great 👍

  • @Altruist-lk3
    @Altruist-lk3 Год назад +1

    Great effort sir...the way you are explaining is splendid..👍

  • @ambadasbhise4878
    @ambadasbhise4878 2 года назад +1

    Nice teaching 👍

  • @imharry404
    @imharry404 Год назад +1

    Great 🤗🤗

  • @sushrutwadnerkar5803
    @sushrutwadnerkar5803 Год назад +2

    Amazing session! 👏

  • @monicabn3067
    @monicabn3067 Год назад +3

    Best man! Top notch explanation with scenarios 🎉

  • @RahulBhatia-py1iv
    @RahulBhatia-py1iv Год назад +1

    Superb bhai

  • @AbdultalibShiekh
    @AbdultalibShiekh Год назад +1

    Sir vmware related lecture (tutorials ) bhi upload kre na

  • @nishitnathvaniblogger1572
    @nishitnathvaniblogger1572 Год назад +1

    can i find his video on awk and sed command?

    • @MPrashant
      @MPrashant  Год назад +1

      SED - ruclips.net/video/ETF6CapGAvc/видео.html
      AWK - ruclips.net/video/dcF5Rqw_VZ4/видео.html

  • @nileshnimje2534
    @nileshnimje2534 2 года назад +1

    Another awesome tutorial Sir....😇😍😊

  • @rohitchamle6556
    @rohitchamle6556 Год назад +2

    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 :)

  • @pivot3india
    @pivot3india 2 года назад +1

    Great content !!

  • @sayedhssain702
    @sayedhssain702 5 месяцев назад

    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

  • @farazmobin2776
    @farazmobin2776 9 месяцев назад +1

    probably the best video ever seen on grep sharing it on twitter.

  • @rajnaik8385
    @rajnaik8385 Год назад +1

    Best video❤

  • @amolkachare8191
    @amolkachare8191 Год назад +1

    Thank you sir...... Sir please can you make on Fgrep command video

  • @shivadasdey7019
    @shivadasdey7019 11 месяцев назад +1

    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 😀

  • @rajesh1979100
    @rajesh1979100 2 года назад +1

    very good... pls share vmware videos linux

  • @swamivivekananda-cyclonicm8781
    @swamivivekananda-cyclonicm8781 Год назад +2

    Comprehensive

  • @mozammilahmad8431
    @mozammilahmad8431 Год назад +2

    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!

  • @extraSALT..
    @extraSALT.. 10 месяцев назад +2

    ♥️

  • @vishaldeshmukh1166
    @vishaldeshmukh1166 2 года назад +5

    Hello... Can you please detailed video on Deployment? I'm watching you videos and are explaining it very well.. Thank you!!

    • @MPrashant
      @MPrashant  2 года назад +2

      Thanks for the feedback!
      I will try to make one soon on deployment

    • @vishaldeshmukh1166
      @vishaldeshmukh1166 2 года назад

      @@MPrashant Thank you, eagerly waiting for your video!!! 🙂

  • @yogibrijkumar
    @yogibrijkumar Год назад +1

    Wonderful tutorial.
    Please make another video for awk command.

  • @faizanahmad3539
    @faizanahmad3539 2 года назад +1

    Hi brother/sir
    Really great work, full support to you keep going😊🎉

  • @gauravmishra7591
    @gauravmishra7591 Год назад +1

    GREAT CONTENT. PLEASE MAKE DETAILED VIDEO ON SHELL SCRIPTING

    • @MPrashant
      @MPrashant  Год назад

      Thanks!
      Already uploaded on channel - ruclips.net/video/M6nZpfIIFEM/видео.html

  • @bharathphotography1947
    @bharathphotography1947 Год назад +1

    Awesome 🖤🤍

  • @akshayborse3127
    @akshayborse3127 2 года назад +3

    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  2 года назад +2

      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 2 года назад +1

      @@MPrashant 😃👌🏻👌🏻

  • @Harsh-yj9ly
    @Harsh-yj9ly 2 года назад +1

    Sir your teaching way is very good
    Could you please make one playlist for awk command for bigners

    • @MPrashant
      @MPrashant  2 года назад

      Thanks for the feedback.
      I will try😊

  • @amandeepsingh7873
    @amandeepsingh7873 Год назад +1

    Kindly linux web server security topic par vedio bnaye kese hum linux server ko secure kr skte hey. Thanks

  • @hemantkakade4640
    @hemantkakade4640 2 года назад +1

    Hello,
    Can you please make video on shellscripting in detail

    • @MPrashant
      @MPrashant  2 года назад

      Already uploaded two videos
      Part1 - ruclips.net/video/M6nZpfIIFEM/видео.html
      Part2 - ruclips.net/video/VAGVFfkE-kQ/видео.html
      Please let me know if you are looking for additional topics, so I can cover in next part

  • @subhrajitsaha1515
    @subhrajitsaha1515 Год назад +1

    Sir can you give some practice Questions

  • @surajjha2900
    @surajjha2900 2 года назад +1

    Can you one video on SSH

  • @princessagent6377
    @princessagent6377 Год назад

    Hello sir..
    I am watching your videos regularly..thay
    Grep -f not working

  • @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?

  • @piyushverma5417
    @piyushverma5417 Год назад +2

    brother, how we can count a word in a line?

    • @MPrashant
      @MPrashant  Год назад +1

      one way is to first select a line using awk or sed then using wc we can get words

    • @piyushverma5417
      @piyushverma5417 Год назад +1

      @@MPrashant i didn't want to count the words in the line, i want to count a word in a line.

  • @mridulm8870
    @mridulm8870 Год назад +1

    Please provide us pdf of commends and it's meaning n fullform

  • @gouravdalavi9196
    @gouravdalavi9196 2 года назад +1

    hii brother, can we use grep command on a zip files

    • @MPrashant
      @MPrashant  2 года назад +1

      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)

  • @rohitchamle6556
    @rohitchamle6556 Год назад +2

    Thanks it means a lot for your support and guidance for youth generation 👍

  • @jijigaonkar4597
    @jijigaonkar4597 Год назад

    Plz share csv files for practice purpose

  • @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 Год назад +1

    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}'