Suppose do you want test if /mnt/disk is a mount point in a shell script. How do you do this?
for mountedPath in `mount | cut -d ' ' -f 3`; do if [ "${mountedPath}" == "${wantedPath}" ]; then exit 0 fi done exit 1