don't use cat! (intermediate) anthony explains

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • today I talk about the `cat` command -- and that it's almost always unnecessary!
    playlist: • anthony explains
    ==========
    twitch: / anthonywritescode
    dicsord: / discord
    twitter: / codewithanthony
    github: github.com/aso...
    stream github: github.com/ant...
    I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!

КОМЕНТАРІ • 17

  • @charles85430
    @charles85430 Рік тому +34

    To keep the intuitive order of the pipeline, you can do

  • @Tegatreides
    @Tegatreides Рік тому +1

    hi anthony, new subscriber here. I'm gonna deep dive into your videos. a question, i watched the xargs video and then thisbone, i noticed you are not using the split keyboard anymode, I'm thinking of getting a splot jeyboard myself, any reason why you don't use it anymore, thank you

  • @filthyE
    @filthyE Рік тому +2

    I'm on a Mac, but I was wondering how you got your 'grep' to highlight the parts that matched in red. Is that a config option? Or is that the default for GNU flavor of grep?
    The default grep on my Mac finds the matches, but doesn't highlight the specific matched letters.
    Anyway, awesome video. Very useful.

    • @anthonywritescode
      @anthonywritescode  Рік тому +9

      I have `alias grep='grep --color=auto'`. I don't remember if that's available in the bsd flavor but you can usually `brew install` the gnu flavor

    • @filthyE
      @filthyE Рік тому

      @@anthonywritescode cool thanks! Didn’t know about this grep flag but I’m going to use it from now on. Appreciate it

  • @sillybuttons925
    @sillybuttons925 Рік тому +7

    Love the thumbnail!

  • @WojtekBaginski
    @WojtekBaginski Рік тому

    Thanks for the advice, I will use cat < file from now on ;)

  • @alice-smith
    @alice-smith Рік тому +1

    Hey Anthony! What's the

    • @anthonywritescode
      @anthonywritescode  Рік тому +2

      ua-cam.com/video/Xf_82stIbB8/v-deo.html here's a video I made about it!

    • @alice-smith
      @alice-smith Рік тому

      @@anthonywritescode thank you :^)

  • @pdecker
    @pdecker Рік тому

    Isn't that less than a "redirect" rather than "pipe"?

  • @FabianBarajas
    @FabianBarajas Рік тому

    Don't forget the heredoc use case for cat.

  • @forsee2328
    @forsee2328 Рік тому +1

    I will still use cat ! !1!

  • @npiazzesi
    @npiazzesi Рік тому +1

    I laughed way too much at the thumbnail lmfao

  • @johnmcway6120
    @johnmcway6120 Рік тому

    First