• 9point6@lemmy.world
    link
    fedilink
    arrow-up
    20
    ·
    1 day ago

    Cat into grep lets you insert something between the file read and grep if you need to without having to reorder anything

    • Quantenteilchen@discuss.tchncs.de
      link
      fedilink
      arrow-up
      4
      ·
      11 hours ago

      Which is also exactly what said youtuber said in the same video (assuming this is about who I think it is!).

      They also made such reasonable statements as “I also pipe cat into grep when on the command line and playing around with my pipelines, but when it comes to writing full bash scripts to do useful work, think about using grep directly.” (not an exact quote btw!)