When you want to prepend line number in every line of file, use the -n
flag of cat
tool.
Example :
cat -n a.txt
Or even from many file
cat -n a.txt b.txt c.txt
When you want to prepend line number in every line of file, use the -n
flag of cat
tool.
Example :
cat -n a.txt
Or even from many file
cat -n a.txt b.txt c.txt
Sound good ?
0 kudos, click the star if you think this post is value !
Read more
about #til