Skip to content
/ dcat Public

Command line catalog tool for your offline data

License

Notifications You must be signed in to change notification settings

acavalin/dcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dcat

A command line catalog tool for your offline data.

After trying some other tools (CDcat, VVV, Basenji, GWhere, catcli) I ended up writing my own with these points in mind:

  • no GUI: usable everywhere especially in remote terminals
  • no extra libraries needed, only mature core tools
  • data stored in a compressed and open format (gzipped json)
  • easy way to browse a catalog with ncurses

With DCat you can

  • create a catalog (files index) for each desired removable media (CD/DVDs, hard/flash drives) or folder
  • search for a file (name or regexp) on a single catalog or your entire collection
  • browse a catalog with a nice dialog interface

Requirements

  1. ruby interpreter (no additional gems required) and common linux commands (find, sort, pv, and dialog):

    apt install ruby findutils coreutils pv dialog

  2. set executable bits on file: chmod 755 dcat

Usage

action command
create dcat <i|index> catalog_name path
list dcat ls
search dcat <s|search> [catalog_name] regexp
browse dcat [catalog_name]

Screenshots

create

create

list

list

search

search1

search2

browse

browse1

browse2