#!/bin/bash #$Id$ # Acknowledgment: # The following code is a modified version of an original work written by # Ken Moffat for their "farce" project and is included here with his # permission. # set -e : <$OUTFILE if [ $? -ne 0 ]; then echo "error, cannot write to $OUTFILE" exit 1 fi find $LOC -xdev -xtype f | sed "s%^${LOC}%/%" | sort >$OUTFILE echo -e "done.\n" exit