logoalt Hacker News

doubled112today at 2:01 AM2 repliesview on HN

Chances are the file stays the same and what Im grepping for changes, so after the first run, it was less work for me not needing to go back as far in the command

    cat file | grep thingone
    cat file | grep thingtwo
Vs

    grep thingone file
    grep thingtwo file

Replies

fc417fc802today at 3:38 AM

If it really matters to you that much then `<file grep thing` has the desired order and is less to type out.

BugsJustFindMetoday at 2:05 AM

That's fine. It's fine to do the thing that brings you joy.