Miscellaneous scripts
abbreviate:
tries to generate sensible abbreviations for words
add:
sums a column of numbers
addmail:
safely add a file (or stdin) to my mailbox
addmtime:
prepend modtime to build files, restore original modtime
agenda:
show reminders for today, tomorrow, and the day after
aline:
adds a string after a given line for one or more files
als:
align ls -lRF output at least reasonably well
authlog:
have a look at recent messages
avg:
calculate standard statistics for a list of numbers
b64:
encode/decode a base-64 file
babyl2mbox:
convert BABYL files to mbox format
backslash:
append lines separated by trailing backslashes
bak:
make a quick backup. Needs one existing file as an argument
bclinks:
create breadcrumbs link to a given page
blog:
store a blog entry from STDIN or a file
blood:
check ~/.bloodrc to see when I can donate again
burst-python:
burst Python mailing-list messages
bytes:
prints number of bytes in supplied files
center:
center a string in a terminal window
cgrep:
look for lines around a pattern
check-logfile:
look for weird stuff like unbalanced preformat tags
cleandos:
clean up DOS files for use under Unix
cline:
changes a given line in a file holding PATTERN to hold STRING
codewords:
finds number of "words" in a C code file
commflags:
find common compiler flags in make output
compare-compressed:
if FILE and FILE.{xz,gz,bz2,Z} exist, uncompress
convert-doc:
convert MS document to OO format
core.adb:
print stack trace for coredump, "adb" version
core.gdb:
print stack trace for coredump, "gdb" version
cshar:
creates a very basic shell archive
cssalign:
fix alignment in CSS files
curl:
front-end for curl
curtime:
print the current time in military/24-hr form
dbinfo:
identify berkeley DB version used to create a database file
dehyph:
join hyphenated lines
dh:
first few entries in a directory, sorted by time
dir:
long directory listing. If running script/saveon, don't colorize it
dline:
remove lines matching a pattern from each file
dnlc:
print Solaris directory/inode cache
dot:
list dot files. If running saveon, don't colorize it
dtree2htm:
accept find output, write a simple HTML filetree
dvd:
search locate-DB holding DVD contents
email-wrap:
wrap long lines in the body of email messages
emptydir:
accept one or more directories, print empty ones
estdump:
dump draft files of all indexed documents into the
eztable:
read title and tab-separated fields, write table
f:
print finger info about a user
ffdump:
dump Firefox history
ffhistory:
print dumped Firefox history in readable form
fftoday:
print Firefox history from SQLite file
file2hash:
print MD4 signature for files or stdin
file2log:
print files holding email in date-sorted order like a LOG
fix-amazon:
fix busted fromline
fixbullet:
run on bulleted text to format properly
fixhist:
fix piece-of-shit zsh history file
ftype:
show filetype, owner, modtime for each file
g:
print the groups for one or more users
getkern:
show predefined kernel tunables
getperm:
print UID, GID, modtime and filemode for files read from stdin
getquote:
pick a random entry from my quotes file
gfiles:
show me what files are in git
grplen:
print length of specific group lines
gt:
start a new gnome-terminal session (AKA gthuge, gtgiant)
gtgiant:
start a new gnome-terminal session (AKA gthuge, gtgiant)
gthuge:
start a new gnome-terminal session (AKA gthuge, gtgiant)
gzdir:
creates gzipped tarfiles of directory trees
haval:
compute Haval signature for files or stdin
hl:
grep with color highlighting
host:
look up a name or IP address
ht:
head and tail of file
html2mkd:
convert reasonable HTML to Markdown
idxcache2html:
read WN index.cache file, write index.htm
inum2mbox:
reads numbered email msgs (usually inodes), writes to mbox
ipurl:
read a URL, write w3m command with IP address instead of host
isempty:
accept list of paths, print only empty directories
keep-links:
save only used references in a file generated by Lynx
kill-ads:
kill stupid advertising URLs - use in a pipeline
kwic:
generate a keyword-in-context (KWIC) index
linkdups:
hard-link identical files to save diskspace
ll:
long file listing. If running saveon, don't colorize it
log2blog:
translate LOG file into weblog entries
log2troff:
make printable LOG file
longest:
print the longest line in a file
look:
find a word using a better dictionary
ls2touch:
create touch commands to set modtime of arguments
lsl:
sort files by size, name, time, etc
lslm:
sort files by size, name, time, etc
lsn:
sort files by size, name, time, etc
lsnm:
sort files by size, name, time, etc
lss:
sort files by size, name, time, etc
lssm:
sort files by size, name, time, etc
lst:
sort files by size, name, time, etc
lstm:
sort files by size, name, time, etc
lynx:
run browser without crap from proxies
mailsum:
provide mail summary using formail, msgsum
makecfg:
print some useful configuration variables generated by perl
man:
replacement for regular man program using vim as pager
mcrypt:
driver for compiled binaries mcrypt/mdecrypt
mdecrypt:
driver for compiled binaries mcrypt/mdecrypt
mk:
create mode-755 directory
mkenvdir:
populate a directory with files holding your environment
mkquery:
read sentences, write Google query links
mkrcs:
write nice RCS info block to stdout or a file
mkshar:
create easy-to-unpack tar/shar file
mktitle:
turn a document title into a decent filename
mlage:
most likely age
mp:
read words from stdin or command line, write metaphone equivalents
msend:
creates MIME-formatted mail messages
msguuid:
use a time-based UUID to generate a decent Message-ID
mtime:
get or set file modification time
mtrecent:
set directory modtime to that of its most recent file
munpack:
decode a message with multipart/mixed MIME attachments
mv2inode:
rename each regular file on command line as its inode number
mx:
make something executable
n32:
numbers lines in base-32
newfiles:
shows list of recently-added directories and files
newvers:
version generator, intended to make tags like "x.y"
nilmail:
use nilsimsa to check email folder for spam
nl:
number lines, write new file with .nl extension
noblank:
remove empty lines from files or stdin
notags:
strip anything resembling HTML, replace char entities
now:
current time to the minute
nr:
format a man entry without page breaks
nv:
version generator, intended to make tags like "x.y"
p:
run a pager (usually less)
paint:
play with images. Requires display from ImageMagick
path2sig:
writes MD5 signature for each line read
path2uri:
encode a pathname as a local URI
perlgrep:
use perl regular expressions to search one or more files
pidof:
print PID of a given process
podindex:
either search or index perl documentation
podsearch:
either search or index perl documentation
r:
make something readable (mode 644)
rand:
quickly generate a random number
rcsdate:
for an RCS file, set modtime to most recent checkin
rl:
reads symlinks, shows where they point
ro:
make something read-only (mode 444)
sdbm:
print SDBM hash for each line
sdelf:
print merged Elf/SDBM hash for each line (64-bit only)
setperm:
read UID, GID, filemode, and modtime from getperm output,
shaid:
use SHA1 to generate a decent message-id
site2html:
pretty-print LOG files
smbcanon:
read smb.conf file, print canonical settings for comparison
sort-logfile:
sort a LOG-style file by date
sortbydate:
print filenames holding email in date-sorted order
sparcinfo:
describe hardware setup
spcheck:
read output from spell, see where problems are
spell:
do spell-check using a better dictionary
ss:
save current X-windows screen as JPEG screenshot
storemail:
store mail messages wrapped, without quoted-printable
tc:
list contents of a gzipped archive file
tcv:
list contents of a gzipped archive file
th:
look up a word in the thesaurus
timediff:
show difference between two times
tinyurl:
shorten a given URL using tinyurl.com API
tr0:
shortcut to replace newlines with nulls
tree2excel:
read output from find, print comma-separated filetree
tx:
extract a gzipped tar file
uidl:
use SHA1 on header to generate UIDL header
updated:
print last local update time for a file
uri2path:
accept a URI starting with file://, and print the path
url:
encode or decode strings resembling URLs
uuid:
print UUIDs for strings, files, URIs
vers:
show current version number, if any
vsort:
sort version or section numbers intelligently
x:
find files with execute bit on
xnote:
show a short message or email subject in a popup
zp:
uncompress a file before running it through less
Miscellaneous scripts
Last update: Mon, 03 Dec 2012 22:12:55 -0500