Script to check if all fstab entires are mounted

Script Name: filesystem_check.bash

#!/bin/bash

FSTAB_ENTRIES=$(cat /etc/fstab | awk '$1 !~/#|^$|swap/ {print $2}')

printf "%-40s%-15s%-15s%-s\n" FILESYSTEM ETC_FSTAB MOUNTED
printf "%-40s%-15s%-15s%-s\n" ---------- --------- -------

for FS in ${FSTAB_ENTRIES}
do
df -hPT | grep -wq ${FS}

if [ $? -eq 0 ]
 then
    PR_FSTAB="Yes"
    PR_MOUNT="Yes"
 else
    PR_FSTAB="Yes"
    PR_MOUNT="No"
fi

printf "%-40s%-15s%-15s%-s\n" $FS $PR_FSTAB $PR_MOUNT
done