I tried running
locate *.orig | xargs rm
but it said No such file or directory
I've seen ways to do it with find
but locate returns the full path to the object so it should be possible
bashgnome-terminalrm
I tried running
locate *.orig | xargs rm
but it said No such file or directory
I've seen ways to do it with find
but locate returns the full path to the object so it should be possible
Best Answer
If filenames contain spaces you should use
From
locate
man page:or
Also, you should protect
*.orig
with quotes, to avoid the shell expansion, and pass it to locate untouched.