Description of example script programs (some may be quite useful to reuse in whole or in part, others are examples of (more-or-less) throw-away scripts used to solve specific short-term problems or accomplish particular needed tasks of the week/day/hour/moment, and may not necessarily have so high a reusability factor) README.txt this file chkargs report on arguments and without any potential interpretation by echo (useful example of eval and <<-) dingding ring bell repeatedly, optionally specifying seconds (default of 1) between each ring Fetchmail fetchmail and Fetchyahoo Fetchyahoo fetchyahoo possibly using multiple configuration files htmlquote quote some text such that it can be placed within an HTML comment htmlunquote undo effect of htmlquote ipv4sort Take IPv4 addresses in dotted quad notation, and sort them in IP order (numerically by each quad) Last-Modified_touch Utility for setting mtime based upon Last-Modified header data, e.g. handy for use with curl -I --silent for existing downloaded files to set mtimes to match a source location. takes input line(s) of form: ^(Last-Modified: )?Dow, DD Mmm YYYY HH:HH:SS GMT file ...$ if file(s) are given, set mtime to that given if file(s) don't exist, create them many_volumes construct a large number of volumes based on a concise specification list of disk group, volume size, quantity, disk (LUN), and (optionally) starting sequence offset; example from Digital UNIX 4.0F LSM (rather/quite similar to Sun and Veritas Volume Manager - except the names of most all the commands change slightly) mdtmtouch touch(1) files based on MDTM obtained via ftp(1) myX some X initialization - though this could be run as a script, I'd typically have it read in (.) and executed by the shell in the X xterm "controlling" program (so it would get the job control of the backgrounded processes) rsync_host2dir Does a somewhat specialized rsync over ssh based backup. Takes 2 arguments, host and (local) target directory. It then uses ssh to contact remote host, determines filesystems to be backed up based on certain type and mount point include/exclude conditions, then backs them up with rsync over ssh, also filtering out some unwanted portions. It also handles reinvocation as superuser via sudo using invoking user's ssh keys available from ssh-agent. shrink2fs shrink ext2/ext3/ext4 filesystem and LVM device takes single argument of ext2/ext3/ext4 filesystem device automagically handles: unmounts it if it's mounted shrinks the filesystem to the the size of the smallest number of LVM PEs that can contain the shrunk filesystem reduces the LV to that size handles fsck if needed Strace invoke strace with certain options set vical open up a vi session on "$HOME"/calendar starting at the first matched of a few possible date based patterns (or if none are matched, simply start a vi session on "$HOME"/calendar) viewinfo open up a vi read-only (-R) session on a set of processed output from the info(1) command viewman open up a vi read-only (-R) session on processed output from the man command wake_up send some text pages at certain times to certain folks as a 'wakup call' xtermtitle set title of xterm and some terminal types with sufficiently similar capabilities