Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

nkuitse (193)

  (email not shown publicly)

Journal of nkuitse (193)

Wednesday May 26, 2004
03:46 PM

Coding frenzy

[ #18956 ]

Lately I've really been coding to beat the band. Mostly command-line utilities written in Perl, plus a shell script here and there.

For example:

  • pprom - write and use portable shell prompts (coming soon)
  • mac2unix - convert line endings in a file or filter stdin
  • aftermath - run a command and show what files are changed, added, or deleted
  • hoy - Hack On Yaml from the command line
  • ok and is - shell functions for testing shell scripts
  • cvsmigrate - munge CVS files in sandbox to point to a different repository
  • manpdf - view man pages as PDF (Mac OS X only at this point, but that should be easy to remedy)

aftermath will come in handy when I want to quickly see which files are being changed, added, or removed by my project Makefiles. For example, the output to the command aftermath --command 'rm foo; mkdir bar/baz' might look like this:

A bar/baz
D foo

Plus I've already started using it with ok and is to test shell scripts:

--------------------- t/ ---------------------
is $(aftermath 'myscript --foo') $(cat foo
is $(aftermath 'myscript --bar') $(cat bar
is $(aftermath 'myscript --baz') $(cat test1.baz) baz
----------------------- output -----------------------
ok 1 - foo
ok 2 - bar
ok 3 - baz

It turned out to be surprisingly easy to write - the key was to get the right incantation of diff.

This recent flurry of coding is obviously connected to the fact that my girlfriend is out of the country for seven weeks, and I don't have much of anything better to do.

My only worry is, how much longer can I keep going at this rate?

(My only other worry is, how long can I go without washing the dishes?) :-)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.