Saturday, October 10, 2020

Linux How to remove all files starting with a name

To delete all files which name has name, you can use it:


find  . -name 'name*' -exec rm {} \;


References:

https://superuser.com/questions/482435/how-to-remove-all-files-starting-with-a-certain-string-in-linux/482436

No comments:

Post a Comment