HOME |
GIT Overview |
Script-Archive:
(docs) :
(wiki) :
(git) |
...
Peter's Script-Archive - Suggested Tools - A Selection
Tool Selection
The immediately usable scripts probably are
- cat0/cat0par:
conversion from/to \0-based lines; also
allows use of grep/sort/... with arbitrary record-based files
- emv:
for interactive mass-renaming files using your favorite editor.
Not just for renaming.
- Grep.pm:
extended grep using boolean expression on top of regex or perl,
with highlighting, synonyms, etc; use with vim.pipe and Grep.xchange for
emv-style semi-interactive mass-editing of files.
- tagls:
use tags on the commandline to describe sets of files:
turn arbitrary file names and lists of filenames into
searchable collections of tagged file names.
- Managing processes:
- waitcond: wait for events like 'make has finished' by
building arbitrary boolean expressions over a language of tests like
existance-of-file, recent-file-modification, grep-in-file-or-command-output,
diskidle/netidle/cpuidle, successful-ping, successful-shell-commands, or
just plain ps-visible processes. Helps to survive higly annoying
long-running jobs like compiles/installs/... that like to randomly
require interaction and thus are stuck for hours instead of completing.
- waitcond.timeout: run a shell command and kill it after a timeout, which
might be the return of a second shell command.
- zap: perl-camel-book process-killer that by now learned about
process trees, and the non-mortal arts of process listing and nicing.
With the exception of cat0 and zap, you'll find these also as small
projects on my freshmeat
page, together with sfre below. I'll bump freshmeats' version
numbers on major changes, so you can 'subscribe' to the freshmeat
feeds for updates.
A bit more special-interest are
- firefox wrapper:
To access firefox bookmarks
(both html as well as sqlite versions),
opened tabs, etc, from the shell, have a look at the firefox
wrapper set of scripts
- mygrepmail:
If you liked grepmail, the archive
contains a butchered version that doesn't give up when confronted with MIMEs.
- sfre:
Still a bit experimental, systemflightrecordereditor's
goal is sequencing changes and augmenting group memory in concurrent
file change scenarios, like multiple administrators using root or
administrator vs cron. For each edit (or more generally run command)
it logs a description to a journal, f-locks the plain file arguments
of the command and uses changetrack to backup changes. It requires
changetrack (changetrack.sf.net) and lock.pl.
Some shell functions of interest are
- _echo (a version of ksh's print, honoring --, thus safe for echoing arbitrary files)
- f2a (reads lines from files into an array, the safe multiple-file pendant of "$(command)")
- uniqpath (strip duplicates or . from :-path-style strings)
- a modified nico_cd dir stack working in both bash and ksh93
HOME |
GIT Overview |
Script-Archive:
(docs) :
(wiki) :
(git) |
...
jakobi(at)acm.org, 2009-07 - 2012-03