backscratcher

 

FrontPage

Page history last edited by tbarron 10 mos ago

Backscratcher

 

"Every good work of software starts by scratching a developer's personal itch."

- Eric Raymond

 

This is the home of the backscratcher collection of software -- small utilities that I have written because I needed them. Feel free to browse and use the tools here. If you discover a bug and figure out how to fix it, or think of a feature to add, send me a patch at tom dot barron at comcast dot net.

 

CC-GNU GPL

Software offered on this site is licensed under the CC-GNU GPL.

 

align - Take semi-formatted columnar input and align the columns neatly.

ascii - Display the ASCII collating sequence in compact form.

calc - Simple calculator written in perl. The script simply evaluates whatever you type, storing the result in an array ($r[0], $r[1], etc.) for easy reference.

Usage: calc

chron - Stopwatch functions, both count up and count down. If an optional command is provided with the count down function, when the count reaches zero, the command will be executed.

Usage: chron -count (down ((hh:)mm:)ss [command] | up)

errno - Report the name and text associated with one or more Unix error numbers, provided on the command line. The nice thing about this version is you don't have to tell it where to look -- it does a find on /usr/include to track down all errno.h files, catenates them all together and examines #defines in that material.

Usage: errno ...

fl - Various file operations:

* copy atime to mtime, copy mtime to atime,

* diff a file against its most recent previous generation,

* revert a file to its most recent previous generation,

* remove carriage returns from a file (convert it from DOS to Unix format),

* display all three times associated with a file (ls will only display one at a time),

* make a backup copy of a file,

* report which files in a directory tree are not readable

Usage: fl [operation] file file ...

ftw_pm - file tree walk routine

use ftw;

...

file_tree_walk('.', call_for_each_file, '(arg1, arg2)', 'pre', 1);

args:

- walk this directory

- call this function for each file in dir

- arguments to pass to each function call

- 'pre' or 'post' ('post' is default)

- 0 or 1; whether to follow symlinks (0 is default)

fx - Various nice command line effects:

* instantiate copies of a command based on a list of files, kind of like xargs, but allows the filename to be embedded in the command rather than having to trail

* apply the same substitution to a set of file names, renaming the files

Usage: fx -n {-c "command" | -e s/old/new/} file file ...

hd - Hex dump utility. Display a file in hex and ascii.

Usage: hd filename

magnitude - Report the magnitude of a (large) number.

Usage: magnitude

odx - Report a number in octal, decimal, and hexadecimal for easy reference. The number on the command line can be given in octal (leading 0), decimal (digits 0-9, no leading 0), or hexadecimal ('0x' followed by hex digits 0-9, a-f).

Usage: odx

plwhich - Search the standard perl module directories for a specific module.

replay - Keep clearing the window and rerunning a command

rot13 - Map "abcdefghijklmnoprstuvwxyz" to "nopqrstuvwxyzabcdefghijklm"

rxlab - Play with regular expressions

scanpath - Hunt for a file in $PATH. (which doesn't report non-executables)

summarize

ptidy - Remove (optionally recursively) emacs backup files (*~)

tps - Look for patterns in the output of ps

truth_table - Generate a truth table

vipath - Edit $PATH

wcal - Display a three month calendar across the window

wxfr - transfer a directory tree using ftp

Comments (0)

You don't have permission to comment on this page.