til

#TIL : Prepend line number to file

I learned on 2018-03-25 about file, string, sysadmin

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?

Leave a kudo — it means a lot.

0