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

> please excuse the useless use of `cat`, it's there to illustrate the direction of data flow

Note that you can write

    < very-large-file
Instead of

    cat very-large-file |
To avoid a useless use of cat and keep the direction. Not that I care very much though. Using cat is less surprising to most people.


> Using cat is less surprising to most people.

Exactly :)

STDIN redirection is a neat trick though so definitely worth highlighting. But it wouldn’t have helped with readability in my particular example.




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

Search: