Hey everyone! I'm on the lookout for some solid collections or sources of Bash scripts to help enhance my scripting skills. Any suggestions?
6 Answers
For an interesting read, you might want to visit Shelldorado. It's a good site for various shell scripting resources: http://www.shelldorado.com/.
What you really need depends on how you want to sharpen your skills. I’ve built a lot of apps in Bash, and I find that using tools like Shellcheck helps a lot in spotting issues. You can check out my GitHub repo here: https://github.com/EraldyHq/kubee/tree/main/bin, and it should give you a good example. Also, LLM tools are a big help in figuring out tricky problems!
Greg's BashGuide is a fantastic resource as well. It covers a lot of ground and breaks down some tough concepts. You can find it over here: https://mywiki.wooledge.org/BashGuide.
You should definitely check out the Pure Bash Bible! It has some really impressive examples and techniques that can really sharpen your skills. Here's the link: https://github.com/dylanaraps/pure-bash-bible.
String manipulation in Bash can be pretty complex! I totally agree, some of those techniques feel quite tricky to remember.
If you're looking for something really deep, you should look into ble.sh. The creator has spent over a decade developing it, and his notes in the /memo folder are really insightful! Here's the link: https://github.com/akinomyoga/ble.sh.
Thanks for the link! I'll definitely check it out.
The Advanced Bash Scripting Guide is my go-to. It's comprehensive and has a ton of examples. You can read it here: https://tldp.org/LDP/abs/html/.
Wow, that looks like a treasure trove of information! Thanks for the recommendation!
I’ll have to look into Shellcheck! I use LLMs too, especially when I’m stuck, and it’s been super helpful.