У меня есть проблема с удалением файлов, когда я их нахожу. Задача: необходимо найти файлы с пробелами и удалить ихLinux не может удалять файлы
мою попытку :)
rm $(find -L /root | grep -i ' ')
Но у меня есть ошибки:
rm: cannot remove `/root/test': No such file or directory
rm: cannot remove `2.txt': No such file or directory
rm: cannot remove `/root/test': No such file or directory
rm: cannot remove `3.txt': No such file or directory
rm: cannot remove `/root/test': No such file or directory
rm: cannot remove `1.txt': No such file or directory
Пожалуйста, помогите решить эту проблему.
Спасибо.