/scrawl

Quick tagged temporary files.

Primary LanguageShellOtherNOASSERTION

USAGE: scrawl [MODE] [OPTIONS]
Organize your text snippets with tagged temporary files.

MODES
  -A [TAG ...]       | add     | Add new entry with given tags.
  -D [TAG ...] INDEX | delete  | Delete entry at given index of matching entries.
  -E [TAG ...] INDEX | edit    | Edit entry at given index of matching entries.
  -G [TAG ...] INDEX | get     | Output entry at given index of matching entries.
  -L [TAG ...]       | list    | List indexed info of matching entries.
  -T [TAG ...]       | tags    | List all tags in matching entries.

OPTIONS
  -a EPOCHTIME  | after   | Select entries with ID after the given epoch time.
  -b EPOCHTIME  | before  | Select entries with ID before the given epoch time.
  -e            | encrypt | Encrypt a file with PGP.
  -i INTEGER    | id      | Select entries or make a new entry with the given ID.
  -r            | reverse | Reverse entry ID sort order.
  -s            | simple  | Output only the file name of matching entries.
  -t TAG        | tag     | Filter entries or make a new entry with the given tag.
  -y INTERVAL   | younger | Select entries files younger the given interval.
  -z INTERVAL   | older   | Select entries older than the given interval.

EXAMPLES
 # Add entries
  $ scrawl -A foo baz < <(fortune)
  $ curl -sS https://ietf.org | scrawl foo

 # Get entries
  $ scrawl -G -t foo 0
  $ scrawl -Gs foo 1

 # List entries
  $ scrawl -L -t baz
  $ scrawl -L -s foo | parallel grep -l ietf

 # List tags
  $ scrawl -T foo