Small pieces of code I've found useful in bash scripts.