7 Essential Command Line Text Tools

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น •

  • @devopstoolbox
    @devopstoolbox  ปีที่แล้ว

    Join my newsletter! newsletter.omerxx.com

  • @kashnomo
    @kashnomo ปีที่แล้ว +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  ปีที่แล้ว

      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!

  • @thfsilvab
    @thfsilvab ปีที่แล้ว +1

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

    • @devopstoolbox
      @devopstoolbox  ปีที่แล้ว +1

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

  • @lpanebr
    @lpanebr ปีที่แล้ว +3

    I didn't know jqp and yq. Thanks!

  • @paulaleksis1513
    @paulaleksis1513 7 หลายเดือนก่อน

    Jeez you are so good at teaching thank you so much

  • @nickmills8476
    @nickmills8476 ปีที่แล้ว +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 ปีที่แล้ว +3

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

    • @devopstoolbox
      @devopstoolbox  ปีที่แล้ว

      Yep! Moonlander! Still getting used to it

    • @AndrewParkinson-qy1cx
      @AndrewParkinson-qy1cx 11 หลายเดือนก่อน

      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

  • @hamzahaddani6240
    @hamzahaddani6240 ปีที่แล้ว +2

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

    • @devopstoolbox
      @devopstoolbox  ปีที่แล้ว +2

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

  • @garciajero
    @garciajero ปีที่แล้ว +1

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

    • @devopstoolbox
      @devopstoolbox  ปีที่แล้ว

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

    • @garciajero
      @garciajero ปีที่แล้ว

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

  • @bkrxiii
    @bkrxiii 2 หลายเดือนก่อน

    Can you recommend any certs to get into devops?

  • @subbunittala2012
    @subbunittala2012 ปีที่แล้ว

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

  • @leonidgrishenkov
    @leonidgrishenkov 6 หลายเดือนก่อน

    Thanks for JQP! It's very useful utility

  • @beto7299
    @beto7299 ปีที่แล้ว

    What is that split keyboard? Looks awesome

  • @MartinsTalbergs
    @MartinsTalbergs 10 หลายเดือนก่อน +1

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

  • @MacDBroski
    @MacDBroski ปีที่แล้ว +1

    Amazing content keep it up!

  • @rohanmainali9040
    @rohanmainali9040 ปีที่แล้ว

    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  ปีที่แล้ว +1

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

    • @rohanmainali9040
      @rohanmainali9040 ปีที่แล้ว +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  ปีที่แล้ว +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 ปีที่แล้ว

      @@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  ปีที่แล้ว +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!

  • @Mikenight120
    @Mikenight120 ปีที่แล้ว

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

    • @devopstoolbox
      @devopstoolbox  ปีที่แล้ว

      😅 certainly is 😉
      ZSA Moonlander!

  • @jason13gaming
    @jason13gaming ปีที่แล้ว +1

    what is your frame rate

    • @devopstoolbox
      @devopstoolbox  ปีที่แล้ว +1

      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

  • @wadecodez
    @wadecodez ปีที่แล้ว

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

    • @devopstoolbox
      @devopstoolbox  ปีที่แล้ว

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

  • @ThangPhan-t2o
    @ThangPhan-t2o ปีที่แล้ว

    Thanks you so much :)

  • @RedbeardyMcGee
    @RedbeardyMcGee 5 หลายเดือนก่อน +1

    To justify my useless use of cat into grep: I got there by ctrl-p dude, you can't blame me.

  • @maerrey
    @maerrey ปีที่แล้ว

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

    • @devopstoolbox
      @devopstoolbox  ปีที่แล้ว

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

    • @jason13gaming
      @jason13gaming ปีที่แล้ว

      @@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  ปีที่แล้ว

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

    • @jason13gaming
      @jason13gaming ปีที่แล้ว

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

  • @mii7s
    @mii7s 9 หลายเดือนก่อน

    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  9 หลายเดือนก่อน

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

    • @mii7s
      @mii7s 9 หลายเดือนก่อน +2

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

  • @subbunittala2012
    @subbunittala2012 ปีที่แล้ว +1

    i do not know abt jqp!