$ cat > test.txt
one
two
three
five
Let's try to number every line: $ nl test.txt
1 one
2 two
3 three
4 five
Ok, the leading spaces are annoying (why not use a single tab?), and are also produced with "cat -n". And why is not numbering blank lines the default?How can you prefix every line, even non-blank ones, with the line number followed by a single tab? Turns out the answer is:
$ nl -w1 -n ln -ba -s"`printf '\t'`" test.txt
Horrible defaults. HORRIBLE.