by jeddy3 · 5y ago · 0 comments
> 3. For every tag `<name>`, create a directory `tags/<name>/`
> 4. Hard-link all files you want to tag under each tag directory that apply.
Does this only give you one level of tags? (i.e you can't combine tags when exploring)
My first crack at it is this:
find -L tags/tag1 tags/tag2 -xtype l | sort | uniq -d
I don't know if that would work (on mobile; can't test), but from reading the man pages, it seems like it would do the trick. find -L tags/tag1 tags/tag2 -xtype l | xargs readlink -f | sort | uniq -d