Don't use removed options in examples

Replace removed options -s, -U, -i and -2 in the man pages and example
scripts.
Some cleanup of example scripts
Simplify scripts/alert.sh
Fix length calculation for "repeat -"