How would I do something like:
ceiling(N/500)
N representing a number.
But in a linux Bash script
Without specifying any function, we can use the following awk script:
echo x y | awk '{ r=$1 % $2; q=$1/y; if (r != 0) q=int(q+1); print q}'
Not sure this one get any logical error or not. Please correct.