fs='/ /var /tmp /opt/bmc/ /usr/sap/';
for i in $fs ; do cd $i; touch d2; if [ "$?" -eq 0 ]; then  echo " $i is writable"; else echo "$i is not writable"; fi; done
