That works if i use exit code.....But im having a hard time to get it to work since im using AWK, heres a line from the script, where would i put the 'exit 1' code? echo $x | awk '{if ($1 > 3900 && $1 <= 4050) printf "%1.3fV - %3.1f", $1 / 1000, 70 + ($1 - 3900) / 10}' i have tried many different ways but cant seem to get it to use exit code......