shell-snippets

Some Bash shell snippets, with functions and utilities that I use frequently in my scripts.

MIT License

Stars
47

shell-snippets

Sample Bash scripts that follow best practices learnt from a variety of sources.

Sources

These are some good resources with tips on how to write good-quality shell scripts:

It is wise to follow the recommendations of more experienced players, because they have already fought some battles that you still haven't even anticipated:

I also like a couple of pages with examples and description of common errors that Bash programmers make:

Last but not least, always use this tool to verify your scripts: ShellCheck. It can be installed as a plugin in lots of text editors and IDEs.

Happy coding!