Skip to content

A Bash script to set tags on files and easily search by those tags.

License

Notifications You must be signed in to change notification settings

WarpEngineer/ftags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7ddc1c1 · Aug 10, 2019

History

45 Commits
Aug 10, 2019
Dec 23, 2017
Dec 23, 2017
Apr 2, 2018
Apr 2, 2018
Apr 2, 2018
Mar 25, 2018

Repository files navigation

ftags

The ftags utility will set tags on files using a simple Bash script. Multiple tags can be set by comma-separating them. Searching for tags is accomplished using the mlocate utility.

requirements:

  • bash 4
  • mlocate
  • building man page requires pandoc
  • realpath: either coreutils or readlink -f

Sample usage

Set tags on files:

ftags -t tag1,tag2 file1 file2 ....

List tags on files or directories

ftags -l [ file1 file2 directory1 ... ]

Search for tag

ftags tag

Remove tag

ftags -r tag1,tag2 file1 file1 ...

locate/slocate vs mlocate

GNU locate does not require root privileges to work since it can run as a regular user, however, mlocate is more likely to be found in different distributions than GNU locate, so it is used by ftags.

AUTHOR

A. G. Madi (@WarpEngineer)

About

A Bash script to set tags on files and easily search by those tags.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published