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
Enjoyed this post?
If you found this helpful, consider sharing it or leaving a kudo!
0 kudos