1 2 3
#!/bin/sh mounts="$( mount | awk '$5~/nfs/{print $3}' )" for word in ${mounts} ; do umount -lv "${word}" ; done