7 Essential Command Line Text Tools
Вставка
- Опубліковано 1 чер 2024
- I was always lazy with these tools trying to hack my way through them, ending up reading docs or googling every time. It turns out, of you memorize the bear essentials, it saves you SO MUCH TIME down the road. These are the essentials for CLI control, mainly around data manipulation. Learn exactly whats important to master day to day work without turning to complex UIs and editors.
LINKS
▶ newsletter.omerxx.com
▶ github.com/omerxx/dotfiles
MY FAVOURITE GEAR
* If you enjoy my content, using the links below will help me with a small commission, so thank you!
⌨️ My keyboard is the wonderful HHKB: amzn.to/3HwJG60
🔗 The HHKB is wired with a high quality coiled cable: amzn.to/3DCA87d
⌨️ Backup keyboard (for traveling mainly) - Nuphy Air60: amzn.to/3R3M7jz
🖥️ My ultra wide 49" monitor: amzn.to/3JbVThC
🎙️ Microphone - Shure MV7X: amzn.to/3kA7tZZ
🦾 Boom Arm - amzn.to/3ZmQgln
🎤 Audio Interface (for XLR microphones) - Focusrite Scarlett Solo: amzn.to/3Z3fBkQ
🦾 Heavy Duty Monitor Arm: amzn.to/3kKp7tS
🖱️ Mouse - MX Master 3: amzn.to/3DiZmaj
📷 Camera - ZVE10: amzn.to/3I1jfVS
🎥 Lens - Sigma 1.4 16mm: amzn.to/3BfFN15
CONSIDER SUPPORTING THIS CHANNEL
☕ Buy me a coffee: www.buymeacoffee.com/omerxx
🎷 60 day free Epidemic Music!: share.epidemicsound.com/w6zfxo
MY KEY LINKS
📰 Join my newsletter! newsletter.omerxx.com
🍿 Subscribe: www.youtube.com/@devopstoolbo...
🌍 My website: omerxx.com
🗞️ Dev & Ops tools Telegram channel: t.me/espressops
🎙️ DevOps Topeaks Podcast: topeaks.buzzsprout.com
⏱ Timestamps
00:00 - Intro
01:02 - Grep
02:29 - XQ (JQ,YQ,JQP)
07:07 - SED
10:00 - Pagers
12:00 - AWK
13:50 - Wait!
#productivity #commandline #devops #neovim #terminal #system #program #dev #ops #software #sysadmin #sysops #linux #terminal #console #cli #keyboard - Наука та технологія
Join my newsletter! newsletter.omerxx.com
Jeez you are so good at teaching thank you so much
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!
Thanks for JQP! It's very useful utility
It is!!
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!
just awesome you are ....showing practical uses in daily life ...rather than definitions ...from BHARAT (india)
🙏🏽
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?
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
Amazing content keep it up!
Thank you 🙏🏽
What is that split keyboard? Looks awesome
ZSA Moonlander
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
Thanks you so much :)
For line numbers every machine has 'nl' installed. Stands for "number lines"
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!
Ive beem seeing your channel for sometime and... IS THAT A NEW SPLIT KEYBOARD YOU GOT!?!?!?
😅 certainly is 😉
ZSA Moonlander!
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!
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
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
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!