I believe the 's' before the search pattern actually stands for "substitute", not "string".
@andromida813 жыл бұрын
Yes you are correct
@PS_Tube2 жыл бұрын
sed is called stream editor, which is what Jay said.
@alexo46003 жыл бұрын
it's important to note that '-i' is a GNU only option - so it won't work on BSD or MacOS etc.
@martinschulz17782 жыл бұрын
Just run into this, had to switch to gnu sed on my mac
@boy_with_thorn2 жыл бұрын
oh that explains it all thnks
@simfoo3 жыл бұрын
Your channel is one of those rare gems on KZbin
@crazyivan3153 жыл бұрын
Finally, a way to easily remove pineapple from pizza topping lists.
@manny87173 жыл бұрын
Couldn’t agree more. Pineapple as a topping? HECK NO!!
@yewenyi Жыл бұрын
Pineapple are good, so is feta. It should change it to both.
@k.chriscaldwell41414 ай бұрын
Amen!
@mason87143 жыл бұрын
love seeing new videos like this for new people to linux. Jay's content is fantastic
@MurangShaBu_MahalNaBiGas2 жыл бұрын
Thank you Jay Linux is really vast, I just had my certification and I never heard of sed command. I'm glad your putting content for us.
@TradersTradingEdge3 жыл бұрын
I love these short session. Very codensed helpful stuff. Thanks Jay!
@MakeItWork256 Жыл бұрын
Great tutorial. Unlike many other KZbinr's you don't overcomplicate things. Linux at it's core is made out of a ton of simple idea's that become complicated when they all work together.
@Ollital2 жыл бұрын
I tried to understand sed for years. I guess now I've got it. Thank you
@BilalKhan-rm8qk Жыл бұрын
This is my first video, that i watched on your channel. You have explained it very nice and clear.
@shabadabadoo43263 жыл бұрын
Doing linux webserver support for well over a decade, sed became a go-to tool for flipping switches in config files. That said, I know its a lot more powerful than what I ever did with it.
@tony-2-tired3 жыл бұрын
Not all heroes wear cape. Great videos. Go buy this man's book too
@villico33 жыл бұрын
you explain stuff very well and simple that makes it easy to grasp! thank you for sharing!
@dorotamartyniuq55533 жыл бұрын
"maybe I'm just hungry, I have no idea why I decided to use pizza toppings as the basis for today's video, but you know what, I did what I did and here it is" it made my day
@larrywilliams80103 жыл бұрын
sed 's/\/etc//' paths.txt Yeah, the command can get rather ugly when lots of escaped characters are needed, but it works and it's second nature for me since I often search for spaces and other characters that must be escaped anyway. Still, I appreciate that there is such an option in case someone wants to learn/use a different delimiter. Thanks for the video
@jefferson4245 Жыл бұрын
This makes that sudoers line make all the sense now. I used to be afraid of sed, but now I can shell script more effectively. Thanks!
@TR1ckY_TV3 жыл бұрын
Finally!!! 🔥 🔥 🔥 Thank you Sir for put the effort in making these amazing videos
@Rebel1012 жыл бұрын
I've just suggested the topic on your new video and saw this covered already afterwards. Thank you!
@rcdenis13 жыл бұрын
I asked a college professor what sed was and I could not get a straight answer from him. Thanks Jay, now I understand. Thank you for posting.
@layer4down2 жыл бұрын
Thanks man that's what I needed to know. Glad the video was short and to the point.
@guypartush2976 Жыл бұрын
Hi Jay, LOVE your videos! Thank you so much for sharing your knowledge. please consider adding a video on the "w" and "who" commands. I realize it looks kind of obvious, but I am a total beginner in linux and your explanations of commands are the best. Looking forward to keep on learning.
@LearnLinuxTV Жыл бұрын
I completely agree that would be a great fit for my series. I will add it to my list.
@alastairtheduke11 ай бұрын
You make understanding the basics so clear!
@thalcave82203 жыл бұрын
Sed is command that I couldn't understand when I was beginner. I learned it but did not understand. After few months of writing sed s/... I noticed that I understand what I was writing.
@polliluiz Жыл бұрын
You are awesome mr. Lacroix. The best Linux guy ever
@bobwong82683 жыл бұрын
👍👍👍👍👍 Thanks! This is a great first-step into the wonderful world of /sed/.
@dillon101210 ай бұрын
You sed it
@VijayaBaskarvvk Жыл бұрын
Great explanation.. subscribed😊.. One video is enough to understand the teacher's ability...
@zeeeeeman2 жыл бұрын
video starts at 2:00
@devilmaycry0204 Жыл бұрын
Simple and straight forward, thanks man
@kazishafin12 жыл бұрын
Happy to found this channel,
@mnmleung2 жыл бұрын
Thank you for very clear presentation and explanation.
@the-baker2 жыл бұрын
This tutorial is amazing. Well done.
@MaximumRD3 жыл бұрын
He sed, She sed......................I'll see myself out......
@billquain23693 жыл бұрын
I didn't know that you could change the delimiter to a different character. this would have come in handy last year when I took a Unix/Linux course at college
@chromerims Жыл бұрын
Incredible information that sed delimiter can be something other than / I too had no idea. I look fwd to using other delimiters with sed.
@ccroy20013 жыл бұрын
The word sed means thirst in Spanish. So have some Pineapple juice. Thanks I've set a goal to get better at the terminal so this helps.
@vladimirtorres11813 жыл бұрын
Wow new subscriber. Really good explanation! TY
@busyrand10 ай бұрын
Fantastic explaination... Thank you Sir...
@linuxdoesmatter5542 Жыл бұрын
You are a genius!!!!! Than you 4 teaching me!!!
@souleymanebarry92316 ай бұрын
Instead of changing the delimiter, you can use the backslash(\) before to escape the slash (/) just like this : sed 's/\/etc//'
@ChristianDavis-x5z Жыл бұрын
'...something EXTREMELY WRONG with this file.' LOL I'm with you, Jay. Pineapple on pizza--I'm OUT. Thanks for the help on delimiters.
@john-r-edge3 жыл бұрын
Not sure ordinary mortals can master both sed and awk.
@YannMetalhead9 ай бұрын
Great explanation!
@freyclante17662 жыл бұрын
I just love that comment about Pineapple as a Pizza topping! Hell No! I couldn't agree more 🙂
@dalirch84962 жыл бұрын
thanks for your effort and explanation
@itbook1823 жыл бұрын
Good morning, Jay. Thank you very much for the detailed guides ! I have an old Toshiba Portege 14" Laptop with Kali 10.04 still installed there. Recently, I wanted to use it for a monitoring device and reinstall it but it is giving the "no pae"- error (common for the very old hardware). It doesn't boot from USB, only from CD/DVD. Do you think, I can still use it to install a Linux OS on it (I wouldn't mind being only CLI - I need it just to be able to install software to monitor my network), and which one you would propose if yes ? Thank you in advance. Asen
@swarooprajpurohit1102 жыл бұрын
You could use a distro which doesn't require pae or install an older version of kali and then upgrade it
@oldpain7625 Жыл бұрын
"What are some cool cli apps?" "sed and awk"
@pnachtwey2 жыл бұрын
I use sed to edit edit the output of a pip command that updates all my outdated python packages. The output goes to a xargs command
@riccoc.65072 жыл бұрын
Thank you for showing syntax
@elnurvalikhanli67832 жыл бұрын
Amazing command and tutorial thanks
@antoineweb111 ай бұрын
how about the /g at the end? chatGPT tells me that if you don't add /g at the end, it will only substitute the word once per line, which may not be enough
@antoineweb111 ай бұрын
for example: echo "a a" | sed s/a/b/ gives "b a" as output
@muralikrishna97482 жыл бұрын
Wondering what would be the script if I want to replace only the last occurance in the last line of the word Pineapple with Olives in your example file ?
@shajibdey64512 жыл бұрын
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??
@sohaibesohaib29146 ай бұрын
the video starts at 1:20
@ZabatMohamed-r6v2 ай бұрын
2:00
@chessmaster8562 жыл бұрын
How do you undo if find and replace was wrong? Notepad++ can find and replace across all files from ui. You don't need Unix command for that. Also it can undo it. Can you undo from unix????
@danperrault2 жыл бұрын
That was very helpful. thanks
@Nonsense1165 ай бұрын
video starts @3:30
@nobilkwt72223 жыл бұрын
I want to eat a pizza now 😂🤣😂🤣😂🤣😂🤣😂😂🤣😂🤣🤣🤣
@xrafter3 жыл бұрын
Pineapple pizza ?
@vladimirkulakov8667 Жыл бұрын
oh man... we can use any delimeter!! not only / !!! Thank you! )
@venkateshiyer5073 Жыл бұрын
thank you sir, very helpful
@adammureiko75083 жыл бұрын
And what, may I ask, is wrong with Pineapple?
@strifef73 жыл бұрын
rude Jay! Pineapple is the GOAT on pizza!!
@nobilkwt72223 жыл бұрын
what about a video about chroot
@ismaeelhaider3075 Жыл бұрын
Awesome 🥰
@tolstoievski4926 Жыл бұрын
what is the difference between -i and -i.bak ?
@debeeriz3 жыл бұрын
i was playing around with it to change one letter in a word to another letter and it worked but only in the first word in each line with the letter. Other occasions of the letter remain unchanged
@debeeriz3 жыл бұрын
found out how add a g for global quidsup explains it in more detail
@BlindRambler3 жыл бұрын
Oh no, no, no. I must change every topping to pineapple. This is not allowed to stand. Thanks for showing me how to use sed to do that. You are very kind, but very wrong.
@tonyfreehauf44632 жыл бұрын
Great Job .... but more more on sed and awk .. thanks - oldtony
@raalmeida2004raАй бұрын
Hawaiian pizza pizza variety, usually topped with pineapple pieces and ham.
@محمّد.096 ай бұрын
that s is for substitute right.
@Ranblv3 жыл бұрын
I think the s stands for substitute not string
@guilherme50943 жыл бұрын
Thanks Jay.
@navasr79692 жыл бұрын
I have data like "Chair"||"Table"|||"Sofa".. How to add double quotes between each pipeline like "Chair"|""|"Table"|""|""|"Sofa" .. Please let me knw the command
@RKulov7 ай бұрын
Sed the pipe with "|"
@janekmachnicki2593 Жыл бұрын
thanks mate for suspenseful tutorial
@sivaprasadk47562 жыл бұрын
Nice...very useful
@stevenoderayi57762 жыл бұрын
‘sed’ is short for ‘stream editor’, for those who’re wondering what the command means.
@markchristophergemzon10522 жыл бұрын
it was said in the video. thanks anyway.
@spacelem5 ай бұрын
Sitting here watching the video while eating a ham and pineapple pizza...
@derekfrost89913 жыл бұрын
The option i followed by a suffix creates a backup = -i.bak this is important as -i can be dangerous.. :)
@vikasmahour6059 Жыл бұрын
Thanks for your vedios. I am stuck in a problem . My XMl FIle contains data like : 1234 2345 8787987 89898 80098 I want to arrange my xml file such that the tags and should be in a single line without space. 1234 2345 8787987 89898 80098 Tried many sed commands but no luck.Please help me to resolve it .
@AM-cz7qy Жыл бұрын
Thank you very much
@LearnLinuxTV Жыл бұрын
You are welcome
@srsr60993 жыл бұрын
Awesome again. Now I have awk sed & $bash ?
@xrafter3 жыл бұрын
ّ
@xrafter3 жыл бұрын
bash: Now: command not found
@srsr60993 жыл бұрын
sudo apt-get update, could help
@brentrambo25712 жыл бұрын
You sed yes, I sed no You sed stop and I sed go go go, oh no You sed goodbye and I sed hello Hello hello I don't know why you sed goodbye, I sed hello Hello hello I don't know why you sed goodbye, I sed hello
@Blubberland Жыл бұрын
3:10 instant like
@terraflops Жыл бұрын
i had issues only because i left out the / after feta (feta/)
@chessmaster8562 жыл бұрын
Is Unix dinosaur or not?
@noeelreeds9 ай бұрын
now i can proceed w automations
@ivanm9186 Жыл бұрын
CHICKEN PINEAPPLE PIZZA IS THE BEST and PERIOD!
@mohamedhussien4013 Жыл бұрын
Thank u so much.
@hailelove12 жыл бұрын
good job
@narayangurung7090 Жыл бұрын
Fantastic
@khomo123 жыл бұрын
Nice!
@Acksakal10 ай бұрын
Thank you
@AnzanHoshinRoshi3 жыл бұрын
Thank you, Jay.
@redshepard53062 жыл бұрын
as a pizza delivery driver who is an aspiring linux user, This tutorial was perfect. that being said, Pineapple_Pizza = "The Best"
@BrianWalker-c8u4 ай бұрын
Luna Ridges
@ThodoreErnest-m6b3 ай бұрын
Noelia Harbor
@kythrathesuntamer9715 Жыл бұрын
Thanks.
@TomikoLinne4 ай бұрын
9450 Aliza Orchard
@TaunyaRoseberry-t6r3 ай бұрын
Shirley Spring
@algabsi63232 жыл бұрын
Thanks
@JohnsonFitch4 ай бұрын
505 Sunny Branch
@ahmadfrahmand2 жыл бұрын
Sir, have a question for you hope you are doing well. i have 1000 of these files 3B43.20000101.7A.HDF.nc4 i would like to remove . (dots) from the file names, and it should look lie 3B43200001017AHDF.nc4 . i watched your tutorial about sed but it is not working here for this as it is not a txt. hope you got my question