Bash: Parse Options And Non-Options With Getopts

Parsing script or function options and non-option arguments is easy in Bash with getopts but there are some catches, such as the need to reset OPTIND. We will se how to do it using getopts, shift, and case. The code below will parse the function arguments and remove them so that $1 will refer toContinue reading “Bash: Parse Options And Non-Options With Getopts”

Most interesting links of October ’12

Recommended Readings David Veksler: Some lesser-known truths about programming – things newcomers into the field of IT don’t know and don’t expect, true and an interesting read. Not backed by good data but anyway. F.ex.: “[..] a programmer spends about 10-20% of his time writing code [..] much of the other 90% thinking, researching, andContinue reading “Most interesting links of October ’12”