Linux SED Command | SED Tutorial in Hindi | Linux for Beginners #6

แชร์
ฝัง
  • เผยแพร่เมื่อ 23 ก.ค. 2021
  • #linux #mprashant #linuxcommands
    Linux SED (Stream Editor) Command Tutorial Hindi, SED Tutorial
    Document link for commands - docs.google.com/document/d/1b...
    Hi Guys,
    sed ("stream editor") is a Unix utility that parses and transforms text, using a simple, compact programming language.
    sed is a line-oriented text processing utility: it reads text, line by line, from an input stream or file, into an internal buffer called the pattern space. Each line read starts a cycle.
    To the pattern space, sed applies one or more operations which have been specified via a sed script. sed implements a programming language with about 25 commands that specify the operations on the text.
    For each input line, after running the script, sed ordinarily outputs the pattern space (the line as modified by the script) and begins the cycle again with the next line.
    Other end-of-script behaviors are available through sed options and script commands, e.g. d to delete the pattern space, q to quit, N to add the next line to the pattern space immediately, and so on.
    Thus a sed script corresponds to the body of a loop that iterates through the lines of a stream, where the loop itself and the loop variable (the current line number) are implicit and maintained by sed.
    linux,sed,sed command,linux tutorial,linux for beginners,linux sed command tutorial,command line,substitute,regular expression,linux basic commands,linux sed command,learn linux sed command,sed tutorial,sed examples,sed linux,sed command tutorial,sed command linux,sed search and replace,linux sed,linux tutorial for beginners,shell script,sed command in linux,linux text processing,linux filtering,linux tutorial 2021,linux tutorial sed,text edit sed sed command in hindi

ความคิดเห็น • 155

  • @akshaypai1972
    @akshaypai1972 6 หลายเดือนก่อน +4

    I have gone through many paid courses on linux.. But no one till now has explained SED command so clearly like Prashanth sir. Every topic is in-depth and shellscripts 5 hour masterclass is out of the world..

    • @MPrashant
      @MPrashant  6 หลายเดือนก่อน +1

      Thanks for the feedback!

  • @pratikkulkarni5677
    @pratikkulkarni5677 ปีที่แล้ว +3

    Your lectures are too easy to understand. Thanks for all your videos.🙏🙏
    Looking forward to watch your more videos on various topics.

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Thanks for the feedback 😀

  • @victorified2912
    @victorified2912 ปีที่แล้ว

    what specialization do you have in linux ?
    if possible can you give practical knowledge on mailing in linux alongwith issues troubleshooting
    like postfix and sendmail, zimbra etc

  • @tasmiyashiledar2740
    @tasmiyashiledar2740 2 หลายเดือนก่อน +2

    Sir,Your explanations are so clear and easy to understand
    Thank you for such nice explanation

    • @MPrashant
      @MPrashant  2 หลายเดือนก่อน +1

      Thanks and welcome!!

  • @tarungupta2001
    @tarungupta2001 2 หลายเดือนก่อน +1

    very hard work.jabardast .....

  • @animeshnagar4216
    @animeshnagar4216 ปีที่แล้ว +1

    Namaste Prashant bhai.
    I wanted to learn Shell Scripting quickly and found each of your videos tremendously helpful. Have recommended your channel to acquaintances as well. Dhanyawaad.

    • @MPrashant
      @MPrashant  ปีที่แล้ว +1

      Thank you bhai for your feedback and support :)

  • @darshiv_
    @darshiv_ 2 ปีที่แล้ว +7

    Wonderful video Prashant ! Clear cut explanation with live usage, keep it up, will refer your videos for Linux stuff, 1.8k views is too less for this masterpiece !

    • @MPrashant
      @MPrashant  2 ปีที่แล้ว

      Thanks a ton buddy!

    • @rahulkatare802
      @rahulkatare802 8 หลายเดือนก่อน

      ​@@MPrashantwhich Linux is this? Cent os or Kali?

    • @MPrashant
      @MPrashant  8 หลายเดือนก่อน

      @@rahulkatare802 centos

  • @harshdeep1264
    @harshdeep1264 ปีที่แล้ว +2

    It is such an amazing video.
    Thank you so much for creating a video like this.
    Stay blessed and enlighten the lives of students.

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      It's my pleasure, I will try to keep making such videos!

  • @be6t942
    @be6t942 หลายเดือนก่อน +1

    bhai yeh video help full nahi tha yeh itna help full tha ki 40 mint ka video 3 hours ses dekh raha hu tab jake khatam hua hey
    thanks for making this amazing playlist for us.

    • @MPrashant
      @MPrashant  หลายเดือนก่อน

      Good job!! Keep learning and growing

  • @shrutigupta3169
    @shrutigupta3169 2 ปีที่แล้ว +2

    Cleared every concept

  • @sreekanth5143
    @sreekanth5143 ปีที่แล้ว

    I need to append a line which consists of special characters after a line which consists of an HTTP URL bro can you please provide solution ASAP.

  • @GrowYourselfForever
    @GrowYourselfForever ปีที่แล้ว +5

    Very nice video and well explained

  • @wi2iekke
    @wi2iekke ปีที่แล้ว +1

    char 2: extra characters after command
    sed -e 'ns/.*/replacement-line/' file.txt
    What am I doing wrong?

  • @bhoomijain3975
    @bhoomijain3975 ปีที่แล้ว +2

    Thank you making such videos with great explanation for beginners like me ❤️

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Glad it helped!

  • @parulgoyal8044
    @parulgoyal8044 ปีที่แล้ว +3

    Very useful videos thanks and please upload more videos on sed regexp

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      thank you! sure I will try

  • @kundankrisnavanshi6793
    @kundankrisnavanshi6793 9 หลายเดือนก่อน

    Big brother...this is humble request from you
    Please make video on patching and upgradation
    This will help many emp to accelerate their employment like me

  • @sohailahmad1406
    @sohailahmad1406 2 ปีที่แล้ว +1

    Sir letters skip krke search krna ho toh kaise hoga
    Jaise
    Sed -i 's/if ( v*** == **** )/if ( v933 == 8787 )/g' data
    Jitne * wale characters hai wo mujhe nhi pta

  • @dipakmahajan2623
    @dipakmahajan2623 7 หลายเดือนก่อน

    Hi sir I stuck in query if var1=10 then how we can replace 10 value without using /source./

  • @nikhilsawarkar4632
    @nikhilsawarkar4632 ปีที่แล้ว

    Hi bro first of all thanks for all this videos just wanted to ask that How to insert data as u have inserted in this video.

  • @farhanpatel5426
    @farhanpatel5426 ปีที่แล้ว +4

    God Bless You for creating this for students, may you be happy always in your life!:)

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Thank you so much 😊

  • @ajitkumbhar1080
    @ajitkumbhar1080 8 หลายเดือนก่อน +1

    Very Informative video. teaching with examples helps a lot to understand.

    • @MPrashant
      @MPrashant  8 หลายเดือนก่อน

      Glad to hear that!

  • @BalveerSingh-jt5ds
    @BalveerSingh-jt5ds ปีที่แล้ว +2

    You are explaining Linux very well, so thanks 👌👌

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Glad it was helpful!

  • @shajibdey6451
    @shajibdey6451 ปีที่แล้ว +1

    et(44)1,tet(37)1,oqxB1,VanX-D4,VanX-D4,tet(O)2,aadA51,VanR-G1,
    here how can I remove everything that comes only after the bracket () by using sed??

  • @wi2iekke
    @wi2iekke ปีที่แล้ว +1

    why "extra characters after command" error shown for the sed command?

  • @shivammohta145
    @shivammohta145 ปีที่แล้ว +1

    hey thanks prashant bro...really appriciate it .lots of love

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      My pleasure!! Thanks!

  • @pundarikakshudumudili6829
    @pundarikakshudumudili6829 ปีที่แล้ว +2

    Wonderful Prashant you are really great with content and explanation.

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Glad you think so!

  • @mustaquealam8456
    @mustaquealam8456 ปีที่แล้ว +1

    Prashant bhai kya samjhate ho bhai itna easy way me kisi ko vi samjh me aa jaye

  • @farhanpatel5426
    @farhanpatel5426 ปีที่แล้ว +1

    sed -i "/string1.*string2\|string2.*string1/d" input.txt
    you can also covert this in delete,
    This deletes two pattern matching in a line.

  • @chinmaypanda1686
    @chinmaypanda1686 ปีที่แล้ว +1

    it is amazing and i am over the moon today.

  • @sandipmandavkar5037
    @sandipmandavkar5037 9 หลายเดือนก่อน +1

    Excellent work Bhai😊👑
    Thank you ❤️

    • @MPrashant
      @MPrashant  9 หลายเดือนก่อน +1

      Most welcome 😊

  • @AdityaKumar-hj3qx
    @AdityaKumar-hj3qx 5 หลายเดือนก่อน +1

    very good content. helped in my linux exam
    recommanded for last day prep

    • @MPrashant
      @MPrashant  5 หลายเดือนก่อน

      Thanks for the feedback!

  • @preetammeena7924
    @preetammeena7924 6 หลายเดือนก่อน +1

    Just want to mention a correction at 34:35.
    How to see names start with only A and C?
    sed -n '/^[AC]/p' names

  • @yogeshpatil3233
    @yogeshpatil3233 2 ปีที่แล้ว

    Thanks prashant it helped me alot.😊🙏

  • @radhaa6564
    @radhaa6564 2 ปีที่แล้ว +1

    how to print the first word after every “.” In the paragraph using sed

  • @amolssalve226
    @amolssalve226 2 ปีที่แล้ว +1

    very nicely explained prashant sir...

    • @MPrashant
      @MPrashant  2 ปีที่แล้ว +1

      Thank you! ❤️

  • @bm1713
    @bm1713 ปีที่แล้ว +2

    Very useful information..thanx..🤟

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      thanks for the feedback!

  • @ashas1537
    @ashas1537 2 ปีที่แล้ว +1

    nice very useful bro

  • @AmitKumar-jp4uh
    @AmitKumar-jp4uh ปีที่แล้ว +1

    Your video is awesome.....................

  • @aijazkittur9691
    @aijazkittur9691 5 หลายเดือนก่อน +1

    Very nice explanation. Thank you sir.

    • @MPrashant
      @MPrashant  4 หลายเดือนก่อน

      Welcome!

  • @BhupinderSingh-gl3og
    @BhupinderSingh-gl3og ปีที่แล้ว

    Hello Prashant, how can we comment a specific line in a file

  • @vijaykrishnachari3175
    @vijaykrishnachari3175 9 หลายเดือนก่อน +1

    excellent dude....simply amazing

    • @MPrashant
      @MPrashant  9 หลายเดือนก่อน

      Thank you so much 😀

  • @Raziquek
    @Raziquek ปีที่แล้ว +1

    Got it sir 👍🏻❤️

  • @sejal907
    @sejal907 9 หลายเดือนก่อน +2

    Awesome sir thank you ❤️

    • @MPrashant
      @MPrashant  9 หลายเดือนก่อน +1

      Most welcome 😊

  • @kaushalpatil2080
    @kaushalpatil2080 ปีที่แล้ว

    I want date in m-d-yyyy format I.e 1-1-2022 can you help?

  • @lojenskumar6113
    @lojenskumar6113 10 หลายเดือนก่อน +1

    Ky bat ha sir aapne ek ek chiz batya ha .i am so grateful of you

    • @MPrashant
      @MPrashant  10 หลายเดือนก่อน +1

      Thanks for the lovely feedback!

  • @narmetasingh1100
    @narmetasingh1100 2 ปีที่แล้ว

    Very well explained Prashnat..

    • @MPrashant
      @MPrashant  2 ปีที่แล้ว

      Thanks Narmeta.

  • @muskangangwani8753
    @muskangangwani8753 ปีที่แล้ว +1

    one of the best tutorial on this topic, grateful!🙏

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Thanks for sharing!

  • @user-do6by2mx3n
    @user-do6by2mx3n 8 หลายเดือนก่อน +1

    Great video very easy for understanding

    • @MPrashant
      @MPrashant  8 หลายเดือนก่อน

      Glad you liked it

  • @theuntamed12
    @theuntamed12 2 หลายเดือนก่อน +1

    Very good explanation

    • @MPrashant
      @MPrashant  2 หลายเดือนก่อน

      Thanks for liking

  • @ashishkota5541
    @ashishkota5541 ปีที่แล้ว +1

    Immense pleasure after watching this video❤

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Glad to hear that!

  • @shaileahrajput9355
    @shaileahrajput9355 ปีที่แล้ว +1

    You are so good sir your video so amazing😍👍

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Thank you 😊

  • @user-qv9mx6jl3p
    @user-qv9mx6jl3p 9 หลายเดือนก่อน +1

    Hi , it is really very interesting and useful , I need to filter out column information form the log files , so which command can be used

    • @MPrashant
      @MPrashant  9 หลายเดือนก่อน +1

      You can use Awk command

  • @ctrlplusinvest
    @ctrlplusinvest ปีที่แล้ว +1

    This video is just a goldmine for newbies like me

  • @shrutigupta3169
    @shrutigupta3169 2 ปีที่แล้ว

    Really really very helpful video

  • @shivajichavan8679
    @shivajichavan8679 ปีที่แล้ว +1

    thank you so much sir.

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Glad it helped😊

  • @BusinessTechBliss
    @BusinessTechBliss 2 ปีที่แล้ว

    Video is Very useful bro

  • @owais4525
    @owais4525 ปีที่แล้ว

    how to add blank line before every line?

  • @PragyanandKumar80
    @PragyanandKumar80 2 ปีที่แล้ว

    Great job sir

  • @Ashishowandakar
    @Ashishowandakar ปีที่แล้ว +1

    Thank you so much sir

  • @yamunakumar77
    @yamunakumar77 ปีที่แล้ว +1

    Please use white background terminal and black font.... It will look better.
    We have to increase brightness before watching your videos so please do the needful

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      This is noted, all the new videos are coming with white background only :)

    • @yamunakumar77
      @yamunakumar77 ปีที่แล้ว

      😍

  • @Minhaj_pathan
    @Minhaj_pathan 9 หลายเดือนก่อน +1

    May Allaha bless you brother Masha Allah nice explanation .

    • @MPrashant
      @MPrashant  9 หลายเดือนก่อน

      It's my pleasure, thank you 😊

  • @kartiksahoo701
    @kartiksahoo701 ปีที่แล้ว +1

    i need all question about sed

  • @swamivivekananda-cyclonicm8781
    @swamivivekananda-cyclonicm8781 ปีที่แล้ว +2

    Comprehencsive.

  • @paulphilip7667
    @paulphilip7667 2 ปีที่แล้ว

    Nice!

    • @MPrashant
      @MPrashant  2 ปีที่แล้ว

      Thank you! Cheers!

  • @shrikantpatil194
    @shrikantpatil194 8 หลายเดือนก่อน +1

    Wonderful
    Nice

    • @MPrashant
      @MPrashant  8 หลายเดือนก่อน

      Thank you so much!

  • @rishiraj2548
    @rishiraj2548 ปีที่แล้ว +1

    Thanks

  • @machhindralahane8153
    @machhindralahane8153 ปีที่แล้ว +1

    Super

  • @mig1381
    @mig1381 2 ปีที่แล้ว

    Nice

  • @LilliputianKitchen100
    @LilliputianKitchen100 ปีที่แล้ว +1

    Dude any plant to post videos on Sql Queries?

    • @MPrashant
      @MPrashant  ปีที่แล้ว +1

      Yes, in plan to bring a short course on SQL but because of tight schedule it might take some time

  • @kartiksahoo701
    @kartiksahoo701 ปีที่แล้ว +1

    prasanta da where to download all question about sed

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      you can get it here - docs.google.com/document/d/1bDRq0TUUs-tqPjOpvWdGsqN9_txHmWVFQH3FC-FFy5g/edit

  • @God1293
    @God1293 11 หลายเดือนก่อน

    Do one in twi

  • @digambarawate4380
    @digambarawate4380 ปีที่แล้ว +1

    Sir, please make video on ping command as soon as possible

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      sure, I will try to make it till Monday..

    • @digambarawate4380
      @digambarawate4380 ปีที่แล้ว

      @@MPrashant sir also explain putty tool

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      @@digambarawate4380 sure

  • @gurug6666
    @gurug6666 หลายเดือนก่อน

    Hi bro me 10th Me hu mene 11.12 nhi Ki h
    Kay me hacking sheekh sakta hu

  • @ChandanKumar-sb5lo
    @ChandanKumar-sb5lo ปีที่แล้ว

    Sir what is solution when Linux server is restarting again and again?

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      are you running on virtualbox? did you make changes recently?

  • @hashmatrixuniverse5203
    @hashmatrixuniverse5203 ปีที่แล้ว +2

    Ju bhi Prashant bhaiya ko pasand karte hai like karo

  • @sakshinaik05
    @sakshinaik05 2 ปีที่แล้ว

    Bring videos on locate and find command

    • @MPrashant
      @MPrashant  2 ปีที่แล้ว

      soon

    • @MPrashant
      @MPrashant  2 ปีที่แล้ว +1

      Video is out: th-cam.com/video/QEwfMpgxQIU/w-d-xo.html

  • @salunkhepratik
    @salunkhepratik ปีที่แล้ว

    Hii sir, How to delete all indian user irrespective of their Upper and lower case / Because if I delete user in (india) then it consider only india not India (I upper case)

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      Can you try /i in last to ignore the case sensitive
      ex: sed -n 's/india/US/gpi' sed.txt

    • @salunkhepratik
      @salunkhepratik ปีที่แล้ว

      Tried but not getting / can u just send me syntax for finding the user in India irrespective their upper and lower case ( i.e i want both user from India(upper case) as well as india(lowercase)

  • @shubhangigangurde8181
    @shubhangigangurde8181 9 หลายเดือนก่อน +1

    how u created table?

    • @MPrashant
      @MPrashant  9 หลายเดือนก่อน

      you can get it from some online tool like this one
      extendsclass.com/csv-generator.html

  • @abhishekagarwal9933
    @abhishekagarwal9933 7 หลายเดือนก่อน +1

    kya bhai tum direct question solve krne lg gye kuch smj hi nhi aaya

  • @narmetasingh1100
    @narmetasingh1100 2 ปีที่แล้ว +1

    I just have doubt in how to wrap the content of file.

    • @MPrashant
      @MPrashant  2 ปีที่แล้ว +2

      If you are asking about viewing a file with it's text wrapped
      You can use 'fold' command
      ex: fold -w40

    • @narmetasingh1100
      @narmetasingh1100 2 ปีที่แล้ว

      @@MPrashant got it..Thanks

  • @mrankushtechnical
    @mrankushtechnical ปีที่แล้ว +1

    exams ke phle dekh rahe hai

  • @MadForCrickett
    @MadForCrickett 9 หลายเดือนก่อน +1

    thanks buddy really helped

    • @MPrashant
      @MPrashant  9 หลายเดือนก่อน

      Glad it helped!

  • @shamadansari5174
    @shamadansari5174 ปีที่แล้ว

    Sir aapka number mil skta hai kya

    • @MPrashant
      @MPrashant  ปีที่แล้ว

      You can connect via Insta or email, you can find details in About section of channel.

  • @BoffkaBoffka
    @BoffkaBoffka ปีที่แล้ว +1

    Thankyou!!!👍👍👍

  • @BoffkaBoffka
    @BoffkaBoffka ปีที่แล้ว +1

    19:28 - 🤣
    clear ; cat -n data | sed '2G'