News for hackers. Stuff that matters.

Ask HN: Beautiful shell code?

What are some examples of beautiful shell code?

Bash---and, in general, shell---gets a lot of flack for being a bad programming language. I understand the sentiment, but after writing a few klocs, with copious support from shellcheck[0], that feeling changed for me. I think bash, and even POSIX shell, can be reasonable languages, well-suited to certain problems.

Without providing rigid metrics, I'm curious about scripts HN has encountered (or produced!) that you consider high-quality.

[0]:https://github.com/koalaman/shellcheck

( 2 comments | 10 points | on HN )
Re:Ask HN: Beautiful shell code? by oweiler on Wednesday June 13, 2018 @06:44PM (#17307646)
My own (currently broken) Bash testing framework written in Bash https://github.com/helpermethod/bash-specs/blob/master/src/b...
Re:Ask HN: Beautiful shell code? by pastyboy on Wednesday June 13, 2018 @04:14AM (#17301242)
acme.sh is the most beautiful I have come across... incredible its all written in BASH and a great way to learn some slick scripting. https://github.com/Neilpang/acme.sh