The shell scripts I ever programmed are just like little fairies who get jobs done magically. May you feel helpful with them.
While the scripts in this repository are more or less application-specific, you may checkout the Fairy-commons repository for common script libraries.
This repository contains submodules as dependencies. Therefore, you should run the following command to get the complete source code:
git clone --recursive https://github.com/streamjoin/fairy.git
When there are updates of the submodules at the remote of this repository, use the following command to pull the changes:
git submodule update --init --recursive
Use the following command to synchronize the submodules with their corresponding remote repositories:
git submodule update --init --remote
Before looking into the following references, you may consider leveraging the bootstrapping facilities crafted based on my years of experience to initiate your shell programming in a more elegant way.
- Google Shell Style Guide
- Bash Guide for Beginners (by Machtelt Garrels)
- Shell常用招式大全之入门篇
- Best Practices for Writing Bash Scripts (by Kevin van Zonneveld)
- progrium/bashstyle (by Jeff Lindsay)
- Bash Scripting Best Practices (by Yaroslav Tkachenko)
- Bash best practices (by Bert Van Vreckem)