Source talk:NetHack 3.4.3/src/objects.c
Jump to navigation
Jump to search
This file needs line numbers! --ZeroOne 17:49, 13 August 2006 (UTC)
- perl -i.bak -ple '$_ = sprintf "%-4s%s", ++$i . ".", $_ if /^\s/' file.wiki
- It's not perfect, but probably quite good enough. You'll need to tweak the 4 for however many digits the largest line number has. Eidolos 18:09, 13 August 2006 (UTC)