delete files with space characters in file name
When you delete files with space in file name, you will get file not found with rm command.
Using find
In this case, you can use find command to delete files with space in file name.
find . -name "* *" -type f -delete
Using Wildcards to Delete Files with Space Characters
rm file*spaces.txt
Disclaimer
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.me
, replace # with @ - Not all the commands and scripts are tested in production environment, use at your own risk
- No personal information is collected.
Feedback