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

КОМЕНТАРІ • 156

  • @akshaypai1972
    @akshaypai1972 8 місяців тому +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  8 місяців тому +1

      Thanks for the feedback!

  • @pratikkulkarni5677
    @pratikkulkarni5677 Рік тому +2

    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 😀

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

  • @tasmiyashiledar2740
    @tasmiyashiledar2740 4 місяці тому +2

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

    • @MPrashant
      @MPrashant  4 місяці тому +1

      Thanks and welcome!!

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

  • @farhanpatel5426
    @farhanpatel5426 Рік тому +4

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

  • @shrutigupta3169
    @shrutigupta3169 2 роки тому +2

    Cleared every concept

  • @GrowYourselfForever
    @GrowYourselfForever Рік тому +5

    Very nice video and well explained

  • @bhoomijain3975
    @bhoomijain3975 2 роки тому +2

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

  • @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 10 місяців тому

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

    • @MPrashant
      @MPrashant  10 місяців тому

      @@rahulkatare802 centos

  • @shivammohta145
    @shivammohta145 Рік тому +1

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

  • @tarungupta2001
    @tarungupta2001 4 місяці тому +1

    very hard work.jabardast .....

  • @BalveerSingh-jt5ds
    @BalveerSingh-jt5ds 2 роки тому +2

    You are explaining Linux very well, so thanks 👌👌

  • @muskangangwani8753
    @muskangangwani8753 Рік тому +1

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

  • @pundarikakshudumudili6829
    @pundarikakshudumudili6829 Рік тому +2

    Wonderful Prashant you are really great with content and explanation.

  • @wi2iekke
    @wi2iekke Рік тому +1

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

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

  • @ajitkumbhar1080
    @ajitkumbhar1080 10 місяців тому +1

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

    • @MPrashant
      @MPrashant  10 місяців тому

      Glad to hear that!

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

  • @wi2iekke
    @wi2iekke Рік тому +1

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

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

  • @chinmaypanda1686
    @chinmaypanda1686 Рік тому +1

    it is amazing and i am over the moon today.

  • @AdityaKumar-hj3qx
    @AdityaKumar-hj3qx 7 місяців тому +1

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

    • @MPrashant
      @MPrashant  7 місяців тому

      Thanks for the feedback!

  • @dipakmahajan2623
    @dipakmahajan2623 9 місяців тому

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

  • @sandipmandavkar5037
    @sandipmandavkar5037 11 місяців тому +1

    Excellent work Bhai😊👑
    Thank you ❤️

    • @MPrashant
      @MPrashant  11 місяців тому +1

      Most welcome 😊

  • @yogeshpatil3233
    @yogeshpatil3233 2 роки тому

    Thanks prashant it helped me alot.😊🙏

  • @bm1713
    @bm1713 Рік тому +2

    Very useful information..thanx..🤟

  • @amolssalve226
    @amolssalve226 2 роки тому +1

    very nicely explained prashant sir...

  • @vijaykrishnachari3175
    @vijaykrishnachari3175 11 місяців тому +1

    excellent dude....simply amazing

    • @MPrashant
      @MPrashant  11 місяців тому

      Thank you so much 😀

  • @parulgoyal8044
    @parulgoyal8044 Рік тому +3

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

    • @MPrashant
      @MPrashant  Рік тому

      thank you! sure I will try

  • @Raziquek
    @Raziquek Рік тому +1

    Got it sir 👍🏻❤️

  • @sejal907
    @sejal907 11 місяців тому +2

    Awesome sir thank you ❤️

    • @MPrashant
      @MPrashant  11 місяців тому +1

      Most welcome 😊

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

  • @aijazkittur9691
    @aijazkittur9691 7 місяців тому +1

    Very nice explanation. Thank you sir.

  • @mustaquealam8456
    @mustaquealam8456 Рік тому +1

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

  • @radhaa6564
    @radhaa6564 2 роки тому +1

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

  • @narmetasingh1100
    @narmetasingh1100 2 роки тому

    Very well explained Prashnat..

  • @ashishkota5541
    @ashishkota5541 Рік тому +1

    Immense pleasure after watching this video❤

  • @ashas1537
    @ashas1537 2 роки тому +1

    nice very useful bro

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

  • @be6t942
    @be6t942 3 місяці тому +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  3 місяці тому

      Good job!! Keep learning and growing

  • @user-do6by2mx3n
    @user-do6by2mx3n 10 місяців тому +1

    Great video very easy for understanding

    • @MPrashant
      @MPrashant  10 місяців тому

      Glad you liked it

  • @kundankrisnavanshi6793
    @kundankrisnavanshi6793 11 місяців тому

    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

  • @AmitKumar-jp4uh
    @AmitKumar-jp4uh Рік тому +1

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

  • @kaushalpatil2080
    @kaushalpatil2080 Рік тому

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

  • @shaileahrajput9355
    @shaileahrajput9355 Рік тому +1

    You are so good sir your video so amazing😍👍

  • @shrutigupta3169
    @shrutigupta3169 2 роки тому

    Really really very helpful video

  • @Ashishowandakar
    @Ashishowandakar Рік тому +1

    Thank you so much sir

  • @theuntamed12
    @theuntamed12 3 місяці тому +1

    Very good explanation

  • @shivajichavan8679
    @shivajichavan8679 Рік тому +1

    thank you so much sir.

  • @mysmallcap
    @mysmallcap Рік тому +1

    This video is just a goldmine for newbies like me

  • @BusinessTechBliss
    @BusinessTechBliss 2 роки тому

    Video is Very useful bro

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

  • @preetammeena7924
    @preetammeena7924 8 місяців тому +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

  • @lojenskumar6113
    @lojenskumar6113 Рік тому +1

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

    • @MPrashant
      @MPrashant  Рік тому +1

      Thanks for the lovely feedback!

  • @PragyanandKumar80
    @PragyanandKumar80 2 роки тому

    Great job sir

  • @swamivivekananda-cyclonicm8781

    Comprehencsive.

  • @BhupinderSingh-gl3og
    @BhupinderSingh-gl3og Рік тому

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

  • @Minhaj_pathan
    @Minhaj_pathan 11 місяців тому +1

    May Allaha bless you brother Masha Allah nice explanation .

    • @MPrashant
      @MPrashant  11 місяців тому

      It's my pleasure, thank you 😊

  • @rishiraj2548
    @rishiraj2548 Рік тому +1

    Thanks

  • @user-qv9mx6jl3p
    @user-qv9mx6jl3p 11 місяців тому +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  11 місяців тому +1

      You can use Awk command

  • @owais4525
    @owais4525 Рік тому

    how to add blank line before every line?

  • @shrikantpatil194
    @shrikantpatil194 10 місяців тому +1

    Wonderful
    Nice

    • @MPrashant
      @MPrashant  10 місяців тому

      Thank you so much!

  • @paulphilip7667
    @paulphilip7667 3 роки тому

    Nice!

  • @JaskaranSingh-io8uj
    @JaskaranSingh-io8uj 20 днів тому

    AMAZING Video Parshant Baii You are the best thanks thanks , Guys i nned help with one script please help if you can It would be great help
    The Question is :How to remove the n number of special characters in multiple files recursively?

  • @machhindralahane8153
    @machhindralahane8153 Рік тому +1

    Super

  • @hashmatrixuniverse5203
    @hashmatrixuniverse5203 Рік тому +2

    Ju bhi Prashant bhaiya ko pasand karte hai like karo

  • @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 Рік тому

      😍

  • @kartiksahoo701
    @kartiksahoo701 Рік тому +1

    i need all question about sed

  • @mig1381
    @mig1381 3 роки тому

    Nice

  • @vkbhimrathi8434
    @vkbhimrathi8434 5 днів тому

    Sir please add also other command questions and answers in pdf.

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

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

  • @shubhangigangurde8181
    @shubhangigangurde8181 11 місяців тому +1

    how u created table?

    • @MPrashant
      @MPrashant  11 місяців тому

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

  • @digambarawate4380
    @digambarawate4380 Рік тому +1

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

  • @ChandanKumar-sb5lo
    @ChandanKumar-sb5lo 2 роки тому

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

    • @MPrashant
      @MPrashant  2 роки тому

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

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

  • @gurug6666
    @gurug6666 3 місяці тому

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

  • @sakshinaik05
    @sakshinaik05 2 роки тому

    Bring videos on locate and find command

    • @MPrashant
      @MPrashant  2 роки тому

      soon

    • @MPrashant
      @MPrashant  2 роки тому +1

      Video is out: ua-cam.com/video/QEwfMpgxQIU/v-deo.html

  • @God1293
    @God1293 Рік тому

    Do one in twi

  • @mrankushtechnical
    @mrankushtechnical Рік тому +1

    exams ke phle dekh rahe hai

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

  • @MadForCrickett
    @MadForCrickett 11 місяців тому +1

    thanks buddy really helped

    • @MPrashant
      @MPrashant  11 місяців тому

      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'