← Back to context

Comment by ndsipa_pomu

3 days ago

Greg's BASH Wiki is the best resource that I've found for tips, tricks and discussion of the many, many mistakes that BASH almost encourages people to make.

https://mywiki.wooledge.org/BashGuide

Also, ShellCheck is an invaluable resource to use on all your scripts. When it complains about something, read up on why it doesn't like it and then decide to either fix your code or put in an exception to tell ShellCheck to ignore that particular issue for the next line.

https://www.shellcheck.net/