11 Sep 2020
Some command line magic
Suppose you want to remove some files spread across your computer that share the same name. In my case, these were files called TAGS. Two things are required:
- a search program (I use the very fast
fd(link) instead offind) - a command executing the deletion of the files.
One could use a loop like described here (SO-link) or:
- A pipe and a
xargscommand:fd TAGS | xargs rm - use fd/finds
execoption:fd TAGS --exec rm