
Untitled
By: a guest on Feb 21st, 2012 | syntax:
Bash | size: 0.22 KB | hits: 12 | expires: Never
$found=false
for i in "${existingjob[@]}"
do
if [ "$i" -eq "$1" ] ; then
echo "Found"
$found=true
break
fi
done
if [ $found -eq false ] ; then
echo "not found"
exit 1
fi