7 Essential Command Line Text Tools

Поделиться
HTML-код
  • Опубликовано: 9 июн 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
  • НаукаНаука

Комментарии • 49

  • @devopstoolbox
    @devopstoolbox  7 месяцев назад

    Join my newsletter! newsletter.omerxx.com

  • @thfsilvab
    @thfsilvab 7 месяцев назад +1

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

    • @devopstoolbox
      @devopstoolbox  7 месяцев назад +1

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

  • @paulaleksis1513
    @paulaleksis1513 27 дней назад

    Jeez you are so good at teaching thank you so much

  • @kashnomo
    @kashnomo 7 месяцев назад +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  7 месяцев назад

      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!

  • @lpanebr
    @lpanebr 7 месяцев назад +3

    I didn't know jqp and yq. Thanks!

  • @leonidgrishenkov4183
    @leonidgrishenkov4183 7 дней назад

    Thanks for JQP! It's very useful utility

  • @user-ki6cb6en9d
    @user-ki6cb6en9d 7 месяцев назад

    Thanks you so much :)

  • @imacdev6228
    @imacdev6228 7 месяцев назад +1

    Amazing content keep it up!

  • @subbunittala2012
    @subbunittala2012 7 месяцев назад

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

  • @garciajero
    @garciajero 7 месяцев назад +1

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

    • @devopstoolbox
      @devopstoolbox  7 месяцев назад

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

    • @garciajero
      @garciajero 7 месяцев назад

      @@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 6 месяцев назад +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?

  • @BNakato
    @BNakato 7 месяцев назад +3

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

    • @devopstoolbox
      @devopstoolbox  7 месяцев назад

      Yep! Moonlander! Still getting used to it

    • @AndrewParkinson-qy1cx
      @AndrewParkinson-qy1cx 4 месяца назад

      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 6 месяцев назад

    What is that split keyboard? Looks awesome

  • @hamzahaddani6240
    @hamzahaddani6240 7 месяцев назад +2

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

    • @devopstoolbox
      @devopstoolbox  7 месяцев назад +2

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

  • @MartinsTalbergs
    @MartinsTalbergs 3 месяца назад +1

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

  • @Mikenight120
    @Mikenight120 7 месяцев назад

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

    • @devopstoolbox
      @devopstoolbox  7 месяцев назад

      😅 certainly is 😉
      ZSA Moonlander!

  • @wadecodez
    @wadecodez 7 месяцев назад

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

    • @devopstoolbox
      @devopstoolbox  7 месяцев назад

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

  • @jason13gaming
    @jason13gaming 7 месяцев назад +1

    what is your frame rate

    • @devopstoolbox
      @devopstoolbox  7 месяцев назад

      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

  • @rohanmainali9040
    @rohanmainali9040 6 месяцев назад

    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  6 месяцев назад

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

    • @rohanmainali9040
      @rohanmainali9040 6 месяцев назад +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  6 месяцев назад +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 6 месяцев назад

      @@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  6 месяцев назад +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!

  • @maerrey
    @maerrey 7 месяцев назад

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

    • @devopstoolbox
      @devopstoolbox  7 месяцев назад

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

    • @jason13gaming
      @jason13gaming 7 месяцев назад

      @@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  7 месяцев назад

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

    • @jason13gaming
      @jason13gaming 7 месяцев назад

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

  • @subbunittala2012
    @subbunittala2012 7 месяцев назад +1

    i do not know abt jqp!

  • @mishathassan6988
    @mishathassan6988 3 месяца назад

    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  3 месяца назад

      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 3 месяца назад +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.