A utility for numbering lines, either from a file, or from standard input.
nl {{file}}
nl -t {{file}}
nl -b p'FooBar[0-9]' {{file}}