find and remove files with space using find command on Linux

前端 未结 5 1161
温柔的废话
温柔的废话 2020-12-14 13:38

I\'m trying to remove all thumbs.db files in a Windows partition using find command in Ubuntu:

find . -iname \"*.db\"|while rea         


        
5条回答
  •  悲哀的现实
    2020-12-14 13:50

    The code looks good and works on arch and debian. Maybe there are no files matching "*.db"?

    As a sidenote: I might not be a good idea to delete all files with the suffix ".db", because you can accidently delete other files than "Thumbs.db"

提交回复
热议问题