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

well, whole thing can be written in the perl -ne ...

but that absolutely kills modularity / composability

so yes, "cat xyz" plays a source - and can be replaced with another source - without touching all other stuff.



> so yes, "cat xyz" plays a source - and can be replaced with another source - without touching all other stuff.

This. I often have to read logs and being able to apply the same oneliner on older logs just by adding a "z" in front of "cat" to read .log.gz instead of .log files is extremely useful.


Good point! I often experiment with cat response.json and then replace cat with curl once I'm happy.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: