See line number while you cat a file

Use the -n option:

cat -n pom.xml

Screen shot 2013-05-28 at 09.06.13

You can now grep over the output for that particular line number you’d like to see. Avoid annoying lessing and searching for manually.

Leave a Reply

Your email address will not be published. Required fields are marked *