INIT bash template; uses flags & takes input from STDIN