Hi,
I have issued the below command to remove directories under a specific path, it removes them fine. But atlast it tries to
find the same directory and fails.
Directories:
/root/app/dir
/root/app/dir/files/
/root/app/dir/backup/
/root/app/dir/archive/
Command:
find /root/app/dir -type d -print0 -exec rm -rf -v "{}" \;
Execution:
removed directory: `/root/app/dir/archive'
removed directory: `/root/app/dir/backup'
removed directory: `/root/app/dir/files'
removed directory: `/root/app/dir'
find: /root/app/dir: No such file or directory