#!/bin/bash VERBOSE="NO" CURRDIR=`pwd` case ${CURRDIR} in /etc/backup|\ /lib/modules/2.0.29|\ /lib/modules/2.0.30|\ /lib/modules/2.0.33|\ /proc|\ /usr/local/var/nntpcache/news.websense.net.|\ /usr/src/linux-2.1.97|\ /usr/src/linux-2.0.33|\ /usr/src/linux-2.0.30|\ /usr/src/source|\ /var/spool/cache|\ /var/spool/mqueue) if [ "${VERBOSE}" = "YES" ]; then echo Skipping ${CURRDIR} ; fi exit ;; *) if [ "${VERBOSE}" = "YES" ]; then echo Working on ${CURRDIR} ; fi if [ "${CURRDIR}" = "/" ]; then CURRDIR="" ; fi for ONEFILE in `ls -A1`; do case ${ONEFILE} in .|..) ;; *) # if [ -L ${ONEFILE} ]; then # echo "${CURRDIR}/`ls -al $ONEFILE # else # echo ${CURRDIR}/$ONEFILE # fi echo ${CURRDIR}/$ONEFILE if [ -d ${ONEFILE} -a ! -L ${ONEFILE} ]; then cd ${ONEFILE} allfiles cd .. fi ;; esac done esac