Hi,
What's the best way to prefix lines of codes with line numbers for
easier lookup and printing?eg: line 1 line 2 becomes 1: line 1 2: line 2 I'm currently doing grep -n "" source-code What's the equilvalent to doing it with sed?? cat source-code | sed 's:^:[What do I put here?]:g' -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 98% Microsoft(tm) Free!! Neuromancer 14:12:49 up 17:19, 8 users, load average: 0.04, 0.18, 0.14 -- [email protected] mailing list

