Converting DOS Batch Files to Shell Scripts