for i in `find /home/directory -type d` do cd $i mydir=$(pwd|rev|awk -F \/ '{print $1}'|rev) directory="$i/$mydir/$mydir" dirtorm="$i/$mydir" if [ -d "$directory" ]; then echo "=======>$i" rm -f -r $dirtorm echo $directory fi done
Post a Comment
No comments:
Post a Comment