prints line numbers

$ nl<filename>

others:
perl -ne \’print \”$. – $_\”\’ $1
grep -n . $1
perl -pe \’print \”$. \”\’ $1
cat -n $1

\"\"

by David Winterbottom (codeinthehole.com)

\"\"
\"\"

\"\"

URL: http://feedproxy.google.com/~r/Command-line-fu/~3/L6W6GZj7Dl8/prints-line-numbers

\"Reblog