Code: Select all
alias isdir=$'for i in $(find . -maxdepth 1 -type d | awk -F "/" \'{print $2}\' | grep -v "\."); do ism=$(df | grep $i); if [ ! "$ism" ]; then echo "Is dir=$i"; else echo "Is mount=$i"; fi; done' 2>/dev/null
Code: Select all
alias isdir=$'for i in $(find . -maxdepth 1 -type d | awk -F "/" \'{print $2}\' | grep -v "\."); do ism=$(df | grep $i); if [ ! "$ism" ]; then echo "Is dir=$i"; else echo "Is mount=$i"; fi; done' 2>/dev/null
Users browsing this forum: No registered users and 3 guests