[ad_1]
There’s a commandline device referred to as tag:
tag is a command line device to control tags on Mac OS X recordsdata (10.9 Mavericks and above), and to question for recordsdata with these tags. tag can use the file system’s built-in metadata search performance to quickly discover all recordsdata which have been tagged with a given set of tags.
Its assist web page:
tag - A device for manipulating and querying file tags.
utilization:
tag -a | --add <tags> <path>... Add tags to file
tag -r | --remove <tags> <path>... Take away tags from file
tag -s | --set <tags> <path>... Set tags on file
tag -m | --match <tags> <path>... Show recordsdata with matching tags
tag -l | --list <path>... Record the tags on file
tag -f | --find <tags> <path>... Discover all recordsdata with tags, restricted to paths if current
<tags> is a comma-separated checklist of tag names; use * to match/discover any tag.
extra choices:
-v | --version Show model
-h | --help Show this assist
-A | --all Show invisible recordsdata whereas enumerating
-e | --enter Enter/enumerate directories supplied
-d | --descend Recursively descend into directories
-n | --name Activate filename show in output (default)
-N | --no-name Flip off filename show in output (checklist, discover, match)
-t | --tags Activate tags show in output (discover, match)
-T | --no-tags Flip off tags show in output (checklist)
-g | --garrulous Show tags every on personal line (checklist, discover, match)
-G | --no-garrulous Show tags comma-separated after filename (default)
-H | --home Discover tagged recordsdata in consumer house listing
-L | --local Discover tagged recordsdata in house + native filesystems
-R | --network Discover tagged recordsdata in house + native + community filesystems
-0 | --nul Terminate strains with NUL ( ) to be used with xargs -0
Accessible at https://github.com/jdberry/tag/ or through Macports or Homebrew
[ad_2]
