Please dont take this seriously guys its just a dumb meme I haven’t written a single line of code in half of these languages

  • corsicanguppy
    link
    fedilink
    arrow-up
    12
    arrow-down
    2
    ·
    10 months ago

    If you’re catting a file into a grep, you can go.

    • renzev@lemmy.world
      cake
      OP
      link
      fedilink
      arrow-up
      7
      ·
      10 months ago

      I mean good point, but if I’m just using bash as a shell and not writing a script, I’m probably first previewing the contents of a file with cat anyway, and recalling the last command and appending a | grep <pattern> to it is less keystrokes than re-writing the last command into grep <pattern> <file>. Especially if you’re playing around with the pattern and trying to get it right, it’s nice to have the pattern at the end of the line.