Speaking of Anki, here’s a Swiss Army knife of database utilities that provides searching, moving and renaming functions from the command line.

On GitHub.

You can do things like this to rename and collect tags:

1
$ anki_tool mv_tags '(dinosaur|mammal)' animal

Looks cool.