7 Essential Command Line Text Tools

Sdílet
Vložit
  • čas přidán 29. 06. 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
  • Věda a technologie

Komentáře • 49

  • @devopstoolbox
    @devopstoolbox  Před 7 měsíci

    Join my newsletter! newsletter.omerxx.com

  • @thfsilvab
    @thfsilvab Před 7 měsíci +1

    Oh wow, amazing video, I'm still learning things in the terminal and these tips are great!

    • @devopstoolbox
      @devopstoolbox  Před 7 měsíci +1

      Happy to hear! Feel free to leave questions if you have any.

  • @kashnomo
    @kashnomo Před 7 měsíci +4

    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.

    • @devopstoolbox
      @devopstoolbox  Před 7 měsíci

      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!

  • @paulaleksis1513
    @paulaleksis1513 Před měsícem

    Jeez you are so good at teaching thank you so much

  • @lpanebr
    @lpanebr Před 7 měsíci +3

    I didn't know jqp and yq. Thanks!

  • @MacDBroski
    @MacDBroski Před 7 měsíci +1

    Amazing content keep it up!

  • @leonidgrishenkov4183
    @leonidgrishenkov4183 Před 28 dny

    Thanks for JQP! It's very useful utility

  • @user-ki6cb6en9d
    @user-ki6cb6en9d Před 7 měsíci

    Thanks you so much :)

  • @subbunittala2012
    @subbunittala2012 Před 7 měsíci

    just awesome you are ....showing practical uses in daily life ...rather than definitions ...from BHARAT (india)

  • @garciajero
    @garciajero Před 8 měsíci +1

    loved this , one that could make the cut in next time could be xargs?

    • @devopstoolbox
      @devopstoolbox  Před 8 měsíci

      I thought about it a lot! Felt a bit advanced but definitely in a future one

    • @garciajero
      @garciajero Před 7 měsíci

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

  • @nickmills8476
    @nickmills8476 Před 7 měsíci +1

    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?

  • @Mikenight120
    @Mikenight120 Před 7 měsíci

    Ive beem seeing your channel for sometime and... IS THAT A NEW SPLIT KEYBOARD YOU GOT!?!?!?

  • @BNakato
    @BNakato Před 7 měsíci +3

    Linux commands are awesome!! I see you have the new keyboard. Whats the model

    • @devopstoolbox
      @devopstoolbox  Před 7 měsíci

      Yep! Moonlander! Still getting used to it

    • @AndrewParkinson-qy1cx
      @AndrewParkinson-qy1cx Před 5 měsíci

      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

  • @beto7299
    @beto7299 Před 6 měsíci

    What is that split keyboard? Looks awesome

  • @MartinsTalbergs
    @MartinsTalbergs Před 4 měsíci +1

    For line numbers every machine has 'nl' installed. Stands for "number lines"

  • @hamzahaddani6240
    @hamzahaddani6240 Před 7 měsíci +2

    Which terminal emulator are you using? I see that it supports font ligatures

    • @devopstoolbox
      @devopstoolbox  Před 7 měsíci +2

      Yep! Wezterm is my go to for everything in past couple of months and it's been great!

  • @wadecodez
    @wadecodez Před 7 měsíci

    man, find, xargs, those are some other really useful commands

    • @devopstoolbox
      @devopstoolbox  Před 7 měsíci

      True! But less-so in the context of data manipulation when reading APIs, aside from xargs which require its own place in the future

  • @rohanmainali9040
    @rohanmainali9040 Před 6 měsíci

    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
      @devopstoolbox  Před 6 měsíci

      Thanks! This is vi-mode. Available everywhere although some plugins make it even better.
      Check “set -o vi”

    • @rohanmainali9040
      @rohanmainali9040 Před 6 měsíci +1

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

    • @devopstoolbox
      @devopstoolbox  Před 6 měsíci +1

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

    • @rohanmainali9040
      @rohanmainali9040 Před 6 měsíci

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

    • @devopstoolbox
      @devopstoolbox  Před 6 měsíci +1

      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!

  • @jason13gaming
    @jason13gaming Před 7 měsíci +1

    what is your frame rate

    • @devopstoolbox
      @devopstoolbox  Před 7 měsíci

      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

  • @maerrey
    @maerrey Před 7 měsíci

    i genuinely thought there was something with my computer because of the odd framerate of the video omg

    • @devopstoolbox
      @devopstoolbox  Před 7 měsíci

      Hi! What do you mean? What’s wrong with it

    • @jason13gaming
      @jason13gaming Před 7 měsíci

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

    • @devopstoolbox
      @devopstoolbox  Před 7 měsíci

      Yes, unfortunately you are right. This happened because of at third party software I used for recording. Sorry for that. @@jason13gaming

    • @jason13gaming
      @jason13gaming Před 7 měsíci

      all good, i'm glad you identified what caused it :P @@devopstoolbox

  • @subbunittala2012
    @subbunittala2012 Před 7 měsíci +1

    i do not know abt jqp!

  • @mishathassan6988
    @mishathassan6988 Před 4 měsíci

    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

    • @devopstoolbox
      @devopstoolbox  Před 4 měsíci

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

    • @mishathassan6988
      @mishathassan6988 Před 4 měsíci +1

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