I use this simple script to print directories that are volumes:

----------------------

#!/bin/sh

# usage: afstree.sh dir_name
# 
# Find all sub-directories under dir_name and print the mount point
# if it "is a mount point"

if [ $# -ne 1 ];then
        echo "Usage: $0 afs_directory"
        exit
fi

find $1 -type d -exec fs ls {} \; 2>&1 | grep "is a mount point" | \
        awk '{printf("%-30s %s\n", $8, $1)}'

------------------------



-- 
John W. Sopko Jr.               University of North Carolina
email: [EMAIL PROTECTED]         Computer Science Dept., CB 3175
Phone: 919-962-1844             Sitterson Hall; Room 135
Fax:   919-962-1799             Chapel Hill, NC 27599-3175

Reply via email to