in reply to numbered sourcecode listing (oneliners)


Here is a golf style effort:
perl -pe'$_=$..$".$_' file

But this doesn't really meet crazyinsomniac's requirements. So how about this: ;-)
perl -e 'print `cat -n $ARGV[0]`' file


John.
--