Comment by patrec

3 years ago

If you're using zsh, you can just replace any instance of

    $ cat somefile ...

with

    $ <somefile ...

For bash, this only works if you have at least one `|`.

I did this last time I saw it come up and was surprised! Doing it makes perfect sense in hindsight. Neato!