I have some directory with funny character such as ^M at their back. They were created accidentally and I want to delete them.
I list the directories by ls -iql
and wrote down their inode number, then I try to delete it by searching it by inode number.
find . -inum 7990028 -exec rmdir -i {} \;
But the command is so slow. I got only some hundreds of directories, but there are a lot of files inside the directories. I think the find command must have been searching through the files.
How can I improve this?