HOME |
GIT Overview |
Script-Archive:
(docs) :
(wiki) :
(git) |
...
Peter's Script-Archive - Various Scripts
Some scripts, helpers and experiments that don't quite fit the other categories.
Commands
Git
View of this section / Download
- ALARM/WHISTLE (acoustic notification, with optional specification
of date, alert messages, etc; e.g. for use with waitcond)
- ALERTOSD (using the on-screen display to print an alert)
- append.p (append files to similar named files in another dir, knows gzip;
though mostly I just use mc for moving files into an archive dir and
appending files in case of collisions)
- date.before,date.after (date specific guarded commmand execution for shell scripts or
cron: return true only before or after DATE, only during a specific week-of-month
relative to either start or end of month - e.g. on the last day of month)
- df.minfree (checks free space and warns if lower than requested)
- diff.p (diff wrapper knowing about gzip)
- gzip.r, gzip.rfix (gzip -r with some exceptions; archive cleanup after gzip -r)
- gunzipmemberextract (experimental demo on how to extract gzipped appended members from
a corrupted gzip file - a bit painful, but not impossible; still the gzip format shows its
age and its deficiencies; if only some bzip2 modes would trade space inefficiency for more speed).
- mt_dir (configures directory short names and invokes one of echo/cd/mc; see
also the nico_cd stack in the shell function section)
- paradj (format or justify a text; modified from J. Duque; can now skip \
to format perl double quoted text for output)
- repeat (when I'm too lazy to write a while ... do; command; done loop)
- rr (retain and recall file aliases, incl. safe command execution with alias and
glob expansion; Perl version)
- sanitize_filenames (rename files containing certain characters, umlauts,
etc; superseeded by myrename)
- sleep.p (select-based sub-second sleep example)
- sleepuntil [ -c COMMAND] TIMESPEC ... sleeps until TIMESPEC, then
optionally execute the previously defined command. Knows some short-hand
notations like sleepuntil +20s or sleeptuntil 16:00.
- unescape.pl (modified version of Guide de Rosa's unescape; strip
some of the noise from script's typescript sessions logs; tries to strip
e.g. vi sessions from the logs to increase their usability)
- watchfloat (write background command output to a floating region of a tty)
See also:
- addcr/foldlf/remcr - adding/removing umlauts or cr from files, (placed into
the html section
due to the use of sub.mime; prehistoric coding style :))
- some notes on a work-around for using fdupes for duplicate detection and relinking
- some helper for printing and coping with gnome-gtk print making a mess of
Unix basics like the possibility of printing via pipelines.
HOME |
GIT Overview |
Script-Archive:
(docs) :
(wiki) :
(git) |
...
jakobi(at)acm.org, 2009-07 - 2012-03