#!/bin/sh for PARAM in "$@" do echo $PARAM; done > params.txt if [[ "$2" == "1" ]]; then cd $6; exec $7; fi;