gdbmrecent-purge1
Purge old entries in gdbmrecent databases
Usage
gdbmrecent-purge [options]
AGE
Overview
gdbmrecent is an add-on module for the JED editor that records the cursor positions of visited files, as well as some buffer local variables, and remember them later. gdbmrecent-purge allows the maintainance of gdbmrecent databases, e.g. through cron tables. Database entries older than `AGE' are purged.
`AGE' is age-since-last-view in seconds unless appended with `Y' (years), `O' (months), `W' (weeks), `D' (days), `H' (hours) or `M' (minutes), e.g., "2w" (2 weeks) or "19d" (19 days). The letters are case-insensitive. If `AGE' is zero the database will be cleared! To purge only non-existant files set `AGE'=10000000000 or some other large number.
Options
- `-q --quiet'
-
Suppress normal output
- `-dFILE --database=FILE'
-
Use
`FILE'instead of the default`~/.jed/recent_db'as the gdbmrecent databse. If`FILE'does not exist, it will be created and contains an empty GDBM database.
Examples
Sample crontab entries for database maintenance:
# Keep four weeks' worth of data02 00 * * * /usr/bin/gdbmrecent-purge 4w
# Keep four weeks' worth of data and shut your mouth02 00 * * * /usr/bin/gdbmrecent-purge 4w -q
# Purge only non-existant files02 00 * * * /usr/bin/gdbmrecent-purge 0x7fffffff
# Reset database every Monday02 00 * * 1 /usr/bin/gdbmrecent-purge 0
# Don't do anything02 00 * * * /usr/bin/gdbmrecent-purge -1
Credits
This script was inspired on the jedstate command, which is now obsolete in Debian. Parts of this man page are copied verbatim from the man page of jedstate.
Releases
2 releases since Debian 4.0 (Etch); the text changed 1 time.