/filefind/bash/filefind.bash/filefind.bash |
---|
39,10 → 39,12 |
curdir=$(pwd) |
cd -- "$directory" |
curdir2=$(pwd) |
files=$(ls) |
files=$(ls -a) |
for file in $files |
do |
pfile=$curdir2/$file # file including path |
if [ $file != ".." -a $file != "." ] |
then |
if [ -d "$file" -a ! -L "$file" ] |
then |
echo $pfile |
55,6 → 57,8 |
echo "WARNING: Could not process file $pfile" |
fi |
fi |
fi |
done |
cd -- "$curdir" |
} |