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:

  1. a search program (I use the very fast fd (link) instead of find)
  2. a command executing the deletion of the files.

One could use a loop like described here (SO-link) or:

Tags: fd terminal pipe