sed on Mac comes from the BSDs which have a much closer relationship to UNIX than the GNU tools. Generally, the GNU variants of tools are a superset of the standard UNIX ones. I realize this is outside the scope of the video, but sed is capable of a fair bit more than simple substitution. You can likely achieve the while loop logic with sed alone. A channel called “nixcasts” has an excellent breakdown of how sed operates.
Thank you for that! Yep, my idea was making the average user get familiar with the important bits of each one of these. Definitely going to check that content you suggested!
Yq came to my rescue recently navigating a large ansible project. Used in conjunction with find -exec. What file contains such and such a nested variable?
Dev block is lik tht pesty annoying itch tht u just cant get ya hands 2,lol dev sensitivity demon activoty with trenchs so deep i recln ops with no names r 8000 miles down feelin brave while thy attack ppl,shld b gunnis book records 4deepest eva mums basement
@@devopstoolbox i use -P0 a lot ```❯ time bash -c "seq 5 | xargs -I{} -P0 sleep {}" bash -c "seq 5 | xargs -I{} -P0 sleep {}" 0.02s user 0.02s system 0% cpu 5.029 total ``` see how it only takes 5 seconds instead of 15
At 8:00 timestamp, you went from terminal mode to vim motion to navigate your terminal like a file. How to achieve that? I am scratching my head for an hour to accomplish that. Great video man 🎉
@@devopstoolbox I added set -o vi in my .zshrc file but all it does is once I click escape, I can use vim motion only on that command but not in entire terminal like you did. I want to utilize vim motion in entire terminal so that I can copy some text of another command's output. I mean if there is some key to switch to that mode, could you please tell me. I didn't fount it anywhere
@@rohanmainali9040 sorry re-watched it, vi mode is for the line, what you see there is tmux history mode where I can navigate the history of tmux buffers. If you use tmux hit prefix and “[“. If you don’t, catch my last video from Friday 😅
@@devopstoolbox now I got it. Thanks a lot man. I was searching this a lot and finally you revealed it😅. Made my day. I was getting in this mode by accident sometimes but didn't knew the exact key to go there. Thanks a lot man. I have been enjoying your contents 🎉
Ah great! no probs!@@rohanmainali9040 This mode allows you not only to scroll but also to visually copy and paste. Check out the tmux-yank plugin as well to utilize it better with the clip board. Enjoy!
Unfortunately there was an interference with fr during post production. Should have caught it earlier but I’ll just keep and I for the next ones. Thanks for noticing! And sorry
@@devopstoolbox literally it's making my eyes hurt, I think you recorded changed the FPS/framerate to 20-24 ? your hand motions are jerky at the beginning of the video and your mouth isn't "lining up" with the audio
Ripgrep (rg) instead of grep, much faster, much better Chmln/sd instead of sed, game changer And choose instead of awk if you are just using it for basics
True! rg is always my choice, specifically here the aim was to cover basic usage for text manipulation rather than modern alternatives. Also, in many use cases, you don't need the shiny new option, and grep is good enough. Knowing the basics is always important IMO bc at some point you're going to find yourself on a remote server with nothing but these :)
@@devopstoolbox i work on remote servers only, almost all machines come with rg and fd by default now. Sd and choose are not that popular yet. So for sed and awk, I agree with you.
Join my newsletter! newsletter.omerxx.com
sed on Mac comes from the BSDs which have a much closer relationship to UNIX than the GNU tools. Generally, the GNU variants of tools are a superset of the standard UNIX ones.
I realize this is outside the scope of the video, but sed is capable of a fair bit more than simple substitution. You can likely achieve the while loop logic with sed alone. A channel called “nixcasts” has an excellent breakdown of how sed operates.
Thank you for that!
Yep, my idea was making the average user get familiar with the important bits of each one of these. Definitely going to check that content you suggested!
Oh wow, amazing video, I'm still learning things in the terminal and these tips are great!
Happy to hear! Feel free to leave questions if you have any.
I didn't know jqp and yq. Thanks!
Jeez you are so good at teaching thank you so much
Yq came to my rescue recently navigating a large ansible project. Used in conjunction with find -exec. What file contains such and such a nested variable?
Linux commands are awesome!! I see you have the new keyboard. Whats the model
Yep! Moonlander! Still getting used to it
Dev block is lik tht pesty annoying itch tht u just cant get ya hands 2,lol dev sensitivity demon activoty with trenchs so deep i recln ops with no names r 8000 miles down feelin brave while thy attack ppl,shld b gunnis book records 4deepest eva mums basement
Which terminal emulator are you using? I see that it supports font ligatures
Yep! Wezterm is my go to for everything in past couple of months and it's been great!
loved this , one that could make the cut in next time could be xargs?
I thought about it a lot! Felt a bit advanced but definitely in a future one
@@devopstoolbox i use -P0 a lot ```❯ time bash -c "seq 5 | xargs -I{} -P0 sleep {}"
bash -c "seq 5 | xargs -I{} -P0 sleep {}" 0.02s user 0.02s system 0% cpu 5.029 total
``` see how it only takes 5 seconds instead of 15
Can you recommend any certs to get into devops?
just awesome you are ....showing practical uses in daily life ...rather than definitions ...from BHARAT (india)
🙏🏽
Thanks for JQP! It's very useful utility
It is!!
What is that split keyboard? Looks awesome
ZSA Moonlander
For line numbers every machine has 'nl' installed. Stands for "number lines"
Amazing content keep it up!
Thank you 🙏🏽
At 8:00 timestamp, you went from terminal mode to vim motion to navigate your terminal like a file. How to achieve that? I am scratching my head for an hour to accomplish that. Great video man 🎉
Thanks! This is vi-mode. Available everywhere although some plugins make it even better.
Check “set -o vi”
@@devopstoolbox I added set -o vi in my .zshrc file but all it does is once I click escape, I can use vim motion only on that command but not in entire terminal like you did. I want to utilize vim motion in entire terminal so that I can copy some text of another command's output. I mean if there is some key to switch to that mode, could you please tell me. I didn't fount it anywhere
@@rohanmainali9040 sorry re-watched it, vi mode is for the line, what you see there is tmux history mode where I can navigate the history of tmux buffers. If you use tmux hit prefix and “[“. If you don’t, catch my last video from Friday 😅
@@devopstoolbox now I got it. Thanks a lot man. I was searching this a lot and finally you revealed it😅. Made my day. I was getting in this mode by accident sometimes but didn't knew the exact key to go there. Thanks a lot man. I have been enjoying your contents 🎉
Ah great! no probs!@@rohanmainali9040
This mode allows you not only to scroll but also to visually copy and paste. Check out the tmux-yank plugin as well to utilize it better with the clip board. Enjoy!
Ive beem seeing your channel for sometime and... IS THAT A NEW SPLIT KEYBOARD YOU GOT!?!?!?
😅 certainly is 😉
ZSA Moonlander!
what is your frame rate
Unfortunately there was an interference with fr during post production. Should have caught it earlier but I’ll just keep and I for the next ones. Thanks for noticing! And sorry
man, find, xargs, those are some other really useful commands
True! But less-so in the context of data manipulation when reading APIs, aside from xargs which require its own place in the future
Thanks you so much :)
To justify my useless use of cat into grep: I got there by ctrl-p dude, you can't blame me.
😆
i genuinely thought there was something with my computer because of the odd framerate of the video omg
Hi! What do you mean? What’s wrong with it
@@devopstoolbox literally it's making my eyes hurt, I think you recorded changed the FPS/framerate to 20-24 ? your hand motions are jerky at the beginning of the video and your mouth isn't "lining up" with the audio
Yes, unfortunately you are right. This happened because of at third party software I used for recording. Sorry for that. @@jason13gaming
all good, i'm glad you identified what caused it :P @@devopstoolbox
Ripgrep (rg) instead of grep, much faster, much better
Chmln/sd instead of sed, game changer
And choose instead of awk if you are just using it for basics
True! rg is always my choice, specifically here the aim was to cover basic usage for text manipulation rather than modern alternatives.
Also, in many use cases, you don't need the shiny new option, and grep is good enough. Knowing the basics is always important IMO bc at some point you're going to find yourself on a remote server with nothing but these :)
@@devopstoolbox i work on remote servers only, almost all machines come with rg and fd by default now. Sd and choose are not that popular yet. So for sed and awk, I agree with you.
i do not know abt jqp!