#!/bin/bash #$Id$ # Acknowledgment: # The following code is a modified version of an original work written by # Ken Moffat for the "DIY Linux" 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 exit