Exit() { Val=$(echo $1| cut -d"|" -f1) Txt=$(echo $1| cut -d"|" -f2) echo "$Val|$Txt" exit $Val }