A Quick Bash Tip: View File Contents With The Line Numbers

14 Aug ยท by Tim Kamanin ยท 1 min read

Bash tip I've just discovered:

Next time when you do cat command to view file contents, pass the -n parameter and you'll see file source with the line numbers!

Very handy:

cat -n file.whatever

Want to get more ๐Ÿ”ฅ tips like this one?

Subscribe to get notified about new dev tutorials