How would I do something like:
ceiling(N/500)
N representing a number.
But in a linux Bash script
Call out to a scripting language with a ceil function. Given $NUMBER:
$NUMBER
python -c "from math import ceil; print ceil($NUMBER/500.0)"
or
perl -w -e "use POSIX; print ceil($NUMBER/500.0), qq{\n}"