Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: