Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshdk/tag-binary
tag and search for files with keywords
https://github.com/joshdk/tag-binary
Last synced: about 5 hours ago
JSON representation
tag and search for files with keywords
- Host: GitHub
- URL: https://github.com/joshdk/tag-binary
- Owner: joshdk
- License: other
- Created: 2010-06-16T22:16:35.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-11-29T10:53:19.000Z (almost 14 years ago)
- Last Synced: 2023-03-11T03:48:22.813Z (over 1 year ago)
- Language: C
- Homepage: sigint.github.com/tag
- Size: 172 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
TAG(1) User Commands TAG(1)
NAME
tag - tag and search for files with keywordsSYNOPSIS
tag -t [[MODIFIER]KEYWORD]... FILE|DIRECTORY
tag -f [[MODIFIER]KEYWORD]... DIRECTORY
tag -q FILE|DIRECTORY
tag LONG-OPTIONDESCRIPTION
-t tag a file or directory with the specified keywords-f search for files and directories that have been tagged with the
specified keywords-q query what keywords are associated with a file or directory
--help display this help and exit
--version
output version information and exitKEYWORD MODIFIERS
When performing file tagging and searching, keywords can optionally be
prefixed by a modifier character. These modifiers will change how tag
interprets the keyword for the specified operation.File Tagging
+KEYWORD (or just KEYWORD)
Will add the keyword KEYWORD to the specified file only if it
has not already been added.-KEYWORD
Will remove the keyword KEYWORD from the specified file only if
it has already been added.:KEYWORD
Will remove any keyword that contains KEYWORD as a substring..KEYWORD
Will remove any keyword that does not contains KEYWORD as a sub-
string.File Searching
+KEYWORD (or just KEYWORD)
Will return files that contain the keyword KEYWORD-KEYWORD
Will filter out returned files that contain the keyword KEYWORD:KEYWORD
Will return files that contain the keyword KEYWORD as a sub-
string..KEYWORD
Will filter out returned files that contain the keyword KEYWORD
as a substring.Useful Tricks
tag -f : DIRECTORY
Will return all files that have been tagged, inside of DIRECTORYtag -f + DIRECTORY
Will return all files that can hold more tags, inside of DIREC-
TORYtag -f : - DIRECTORY
Will return all files that cannot hold more tags, inside of
DIRECTORYtag -t : TARGET
Will remove all keywords associated with TARGETAUTHOR
Written by Josh Komoroske.COPYRIGHT
Copyright © 2010 Josh Komoroske License BSD:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTIC-
ULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JOSHUA KOMOROSKE BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSI-
NESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.September 2010 TAG(1)