0

How can I delete everything in a folder that doesn't have a tag? Manually sifting through it is fairly unreasonable.

1 Answer 1

1
mdfind 'kMDItemUserTags!=*' -onlyin . -0|xargs -0 rm

Or using tag:

find . -type f|while read f;do [[ $(tag -m \* "$f") ]]||rm "$f";done

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .