What was the last sketch on my Uno?

I've been messing about with several sketches, uploading and trying each, not necessarily in turn, sometimes on the Uno, sometimes on the iDuino.

Then I go off to fiddle with the PID on my iDuino board and completely forget which sketch was the current one one either board.

Is there any way to 'read back' which sketch is running on an Arduino board?

Geoff

Yes, you can use Avrdude, but the sketch you read back is nothing like your source