#!/bin/bash fuse_opts="-o allow_other" MNT=$PWD/mnt for P in pnd/*.pnd; do N=${P#pnd/} D=$MNT/${N%.pnd} v fusermount -u "$D" q rmdir "$D" done