if [[ $1 == "" ]]; then echo "No template file specified" fi if [[ $2 == "" ]]; then echo "No serial specified" fi if [[ $3 == "" ]]; then echo "No reg number specified" fi cat $1 | sed "s//$2/" | sed "s//$3/" > ready_params.json ./req.sh set-device-params ready_params.json