Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Big Dave

macrumors 6502
Original poster
I'm using nl to number the lines in a file:

nl file > newfile

nl defaults to labeling the first line 1.

Is there a way to make nl start at 0?
 
Thanks for the help! Worked great. I didn't know if -v was the right choice. I should have tried it. DOH! Thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.