Bash functions are essentially reusable wrappers around commands. You can use them to define complex command pipelines or to perform some detailed work and echo the result. They accept arguments and ...
When you first start writing scripts, modularity, reusability, and best practices may not be top of mind. As your scripts become more complex, however, creating reusable elements becomes essential. By ...
Last week I wrote about good practices in writing comment headers for source code files. Several readers wrote asking for my thoughts on headers for functions. I recommend reading code. Lots of code.