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

That particular example is an overly silly but I often write

   cat file | grep ...
   or
   cat file | awk '{blah}'
for ad-hoc stuff even though I am fully aware that I could easily avoid the cat simply because having the regex or awk code at the very end makes it easier to read, edit or extend with additional pipeline elements.


FWIW redirection is not positional:

    ~$ <frongle.txt grep fringle >frungle.txt


We all do. Well probably not Rob Pike




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

Search: