Skip to navigation

How do I print a specific line number in a very large text file on RHEL

Updated 2014-01-13T02:29:56+00:00

Issue

There are times when I need to locate a specific line in a very large text file. Opening the file in a text editor is very time consuming, sometimes impossible due to memory requirements.

Environment

Red Hat Enterprise Linux

Subscriber content preview. For full access to the Red Hat Knowledgebase, please log in.

Not a subscriber? Learn more about the benefits of Red Hat Subscriptions.