Sysadmin > OSXFileTagging

Tagging files in Mac OS X

wip

TagIt | Leap | Tags

CLI

Example

Mark every 24 bit flac file with the tag "highres"

find . -name "*.flac" -print0 | xargs -0 file  | grep -v "16 bit" | cut -d: -f1 | cut -d\/ -f1-2 | sort | uniq | tr '\n' '\0' |  xargs -0 -t -I%  tag -0 --add highres %

find . -name "*.flac" -print0 | xargs -0 file  | grep -v "16 bit" | cut -d: -f1 | cut -d\/ -f1-2 | sort | uniq | tr '\n' '\0' |  xargs -0 -t tag -0 --add highres

I have still problems with special characters.