commands.sh

tag

macos

Edit tags on Mac OS X files (10.9 Mavericks and above).

More info →

Options (3)

-a, --addboolean

Add tags to a file

Example: tag {{[-a|--add]}} {{tag_name1,tag_name2,...}} {{path/to/file}}
-r, --removeboolean

Remove a tag

Example: tag {{[-r|--remove]}} {{tag_name}} {{path/to/file}}
-m, --matchboolean

Show all files with a given tag

Example: tag {{[-m|--match]}} {{tag_name}}

Examples (4)

Add tags to a file

tag [-a|--add] tag_name1,tag_name2,... path/to/file

Remove a tag

tag [-r|--remove] tag_name path/to/file

Remove all tags from a file

tag [-r|--remove] \* path/to/file

Show all files with a given tag

tag [-m|--match] tag_name
made by @shridhargupta | data from tldr-pages