• @[email protected]
    link
    fedilink
    English
    87 months ago

    It’s a command line tool which filters for all lines containing the query. So something like

    cat log.txt | grep Error5

    Would output only lines containing Error5

      • @[email protected]
        link
        fedilink
        127 months ago

        In the back of my mind I know this is there, but the cat | grep pattern is just muscle memory at this point

        • @[email protected]
          link
          fedilink
          37 months ago

          I’ve been ‘told off’ so many times by the internet for my cat and grep combos that I still do it, then I remove the cat, it still works, and I feel better. shrug

    • @MehBlah
      link
      17 months ago

      or if its a complex error cat log.txt|grep keyword1|grep keyword 2 and so on.