find and remove files with space using find command on Linux

前端 未结 5 1173
温柔的废话
温柔的废话 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:48

    I'm not sure why you're using while.

    find . -iname 'thumbs.db' -exec rm -rfv {} \;
    

    ...should suffice (and only delete the files you want to, not any BDB files that may be laying around).

提交回复
热议问题