Shell scripts varying in generality and functionality