Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Java, we have Javadoc and some different styles when programming. In Python, there's pep8.

I'm creating some bash scripts for my own use, and would like to know from you, experienced bash users, if there's some kind of "pattern" like indentation, documentation for functions, etc. A book or a website with some references.

share|improve this question

closed as primarily opinion-based by Gilles, slm, jasonwryan, Evan Teitelman, Mat Oct 1 '13 at 3:57

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

While it's not a standard by any means, I wrote a short article on template method pattern in BASH. There are also some BASH frameworks out there you might like or take inspiration from, just google for them. – quickshiftin Jan 28 '14 at 16:04
up vote 1 down vote accepted

An excellent answer to this question can be found here: design patterns or best practices for shell scripts

share|improve this answer
well excellent for us but not for the moderator that closed it as "not constructive".. – VP. Aug 9 '14 at 20:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.