tag

From RaySoft

tag is a command line tool to manipulate tags on Mac OS X files, and to query for files with those tags. tag can use the file system's built-in metadata search functionality to rapidly find all files that have been tagged with a given set of tags.[1]

Documentation

Syntax

tag [PARAMETER ...] [FILE/DIRECTORY ...]

Parameters

-a TAG, --add TAG
Add tags to file.
-r TAG, --remove TAG
Remove tags from file.
-R, --recursive
Recursively process directories.

References