gdbmrecent-purge(1)

NAME

gdbmrecent-purge - purge old entries in gdbmrecent databases

SYNOPSIS

gdbmrecent-purge [options] AGE

DESCRIPTION

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 data
02 00 * * * /usr/bin/gdbmrecent-purge 4w
# Keep four weeks' worth of data and shut your mouth
02 00 * * * /usr/bin/gdbmrecent-purge 4w -q
# Purge only non-existant files
02 00 * * * /usr/bin/gdbmrecent-purge 0x7fffffff
# Reset database every Monday
02 00 * * 1 /usr/bin/gdbmrecent-purge 0
# Don't do anything
02 00 * * * /usr/bin/gdbmrecent-purge -1

SEE ALSO

"jed (1)", "crontab (5)"

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.

AUTHOR

Rafael Laboissiere
Copyright © 2010-2025 Platon Technologies, s.r.o.           Index | Man stránky | tLDP | Dokumenty | Utilitky | O projekte
Design by styleshout