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
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..
Thanks for the feedback!
Your lectures are too easy to understand. Thanks for all your videos.🙏🙏
Looking forward to watch your more videos on various topics.
Thanks for the feedback 😀
It is such an amazing video.
Thank you so much for creating a video like this.
Stay blessed and enlighten the lives of students.
It's my pleasure, I will try to keep making such videos!
Sir,Your explanations are so clear and easy to understand
Thank you for such nice explanation
Thanks and welcome!!
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.
Thank you bhai for your feedback and support :)
God Bless You for creating this for students, may you be happy always in your life!:)
Thank you so much 😊
Cleared every concept
Very nice video and well explained
Thank you!
Thank you making such videos with great explanation for beginners like me ❤️
Glad it helped!
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 !
Thanks a ton buddy!
@@MPrashantwhich Linux is this? Cent os or Kali?
@@rahulkatare802 centos
hey thanks prashant bro...really appriciate it .lots of love
My pleasure!! Thanks!
very hard work.jabardast .....
You are explaining Linux very well, so thanks 👌👌
Glad it was helpful!
one of the best tutorial on this topic, grateful!🙏
Thanks for sharing!
Wonderful Prashant you are really great with content and explanation.
Glad you think so!
char 2: extra characters after command
sed -e 'ns/.*/replacement-line/' file.txt
What am I doing wrong?
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
Very Informative video. teaching with examples helps a lot to understand.
Glad to hear that!
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.
why "extra characters after command" error shown for the sed command?
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??
it is amazing and i am over the moon today.
very good content. helped in my linux exam
recommanded for last day prep
Thanks for the feedback!
Hi sir I stuck in query if var1=10 then how we can replace 10 value without using /source./
Excellent work Bhai😊👑
Thank you ❤️
Most welcome 😊
Thanks prashant it helped me alot.😊🙏
💐🎉
Very useful information..thanx..🤟
thanks for the feedback!
very nicely explained prashant sir...
Thank you! ❤️
excellent dude....simply amazing
Thank you so much 😀
Very useful videos thanks and please upload more videos on sed regexp
thank you! sure I will try
Got it sir 👍🏻❤️
Awesome sir thank you ❤️
Most welcome 😊
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
Very nice explanation. Thank you sir.
Welcome!
Prashant bhai kya samjhate ho bhai itna easy way me kisi ko vi samjh me aa jaye
Thank you! :)
how to print the first word after every “.” In the paragraph using sed
Very well explained Prashnat..
Thanks Narmeta.
Immense pleasure after watching this video❤
Glad to hear that!
nice very useful bro
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.
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.
Good job!! Keep learning and growing
Great video very easy for understanding
Glad you liked it
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
Your video is awesome.....................
Thank you!
I want date in m-d-yyyy format I.e 1-1-2022 can you help?
You are so good sir your video so amazing😍👍
Thank you 😊
Really really very helpful video
thank you!
Thank you so much sir
Most welcome
Very good explanation
Thanks for liking
thank you so much sir.
Glad it helped😊
This video is just a goldmine for newbies like me
Thank you!
Video is Very useful bro
Thanks bro
sed -i "/string1.*string2\|string2.*string1/d" input.txt
you can also covert this in delete,
This deletes two pattern matching in a line.
Just want to mention a correction at 34:35.
How to see names start with only A and C?
sed -n '/^[AC]/p' names
Ky bat ha sir aapne ek ek chiz batya ha .i am so grateful of you
Thanks for the lovely feedback!
Great job sir
Thanks
Comprehencsive.
Hello Prashant, how can we comment a specific line in a file
May Allaha bless you brother Masha Allah nice explanation .
It's my pleasure, thank you 😊
Thanks
Welcome!
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
You can use Awk command
how to add blank line before every line?
Wonderful
Nice
Thank you so much!
Nice!
Thank you! Cheers!
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?
Super
Thanks
Ju bhi Prashant bhaiya ko pasand karte hai like karo
✌🏻
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
This is noted, all the new videos are coming with white background only :)
😍
i need all question about sed
Nice
Thanks!
Sir please add also other command questions and answers in pdf.
prasanta da where to download all question about sed
you can get it here - docs.google.com/document/d/1bDRq0TUUs-tqPjOpvWdGsqN9_txHmWVFQH3FC-FFy5g/edit
Dude any plant to post videos on Sql Queries?
Yes, in plan to bring a short course on SQL but because of tight schedule it might take some time
how u created table?
you can get it from some online tool like this one
extendsclass.com/csv-generator.html
Sir, please make video on ping command as soon as possible
sure, I will try to make it till Monday..
@@MPrashant sir also explain putty tool
@@digambarawate4380 sure
Sir what is solution when Linux server is restarting again and again?
are you running on virtualbox? did you make changes recently?
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)
Can you try /i in last to ignore the case sensitive
ex: sed -n 's/india/US/gpi' sed.txt
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)
Hi bro me 10th Me hu mene 11.12 nhi Ki h
Kay me hacking sheekh sakta hu
Bring videos on locate and find command
soon
Video is out: ua-cam.com/video/QEwfMpgxQIU/v-deo.html
Do one in twi
exams ke phle dekh rahe hai
Caught you😂😂
Lol same
I just have doubt in how to wrap the content of file.
If you are asking about viewing a file with it's text wrapped
You can use 'fold' command
ex: fold -w40
@@MPrashant got it..Thanks
thanks buddy really helped
Glad it helped!
Sir aapka number mil skta hai kya
You can connect via Insta or email, you can find details in About section of channel.
Thankyou!!!👍👍👍
Welcome 👍
19:28 - 🤣
clear ; cat -n data | sed '2G'