News for hackers. Stuff that matters.
Re:Cool, but obscure Unix tools by nuxi on Saturday May 21, 2011 @11:32AM (#2571005)
Yup, use awk for similar tasks:

  awk '{ print FNR "\t" $0 }' test.txt
  1	one
  2	two
  3	three
  4	
  5	five
Re:Cool, but obscure Unix tools by sigil on Saturday May 21, 2011 @05:18PM (#2571769)
Yeah, I usually use awk or perl for this (depends on my mood). Just find it annoying that the unix program whose stated purpose is to number lines is basically dead to me.