-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
37 lines (31 loc) · 1.46 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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