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

It's kindof a dumb answer, but `abcde` (A Better CD Encoder) continues to be my go-to reference for "everything shell".

https://git.einval.com/cgi-bin/gitweb.cgi?p=abcde.git;a=summ...

https://git.einval.com/cgi-bin/gitweb.cgi?p=abcde.git;a=blob...

...it's just so damned... like... it _is_ 5000 lines of bash, but given the constraints and the problem domain, it's an incredible (and well-organized) feat.

If I ever question "How would I do something like XXX in shell?", I can usually find some clues, inspirations, or answers in the `abcde` codebase.



> https://git.einval.com/cgi-bin/gitweb.cgi?p=abcde.git;a=blob...

Interesting. I was a bit surprised by the use of echo in the usage() function (and not cat and a heredoc) -- but that certainly looks like a very structured shell script.

Thanks for sharing.




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

Search: