How Do I Display a Specific Line in a File in Linux?
Contents How Do I View a Specific Line in Unix? If You’re Already in Vi, You Can Use the Goto Command. to Do This, Press Esc, Type the Line Number, and Then...
Contents
How do I view a specific line in Unix?
If you’re already in vi, you can use the goto command. To do this, press Esc , type the line number, and then press Shift-g . If you press Esc and then Shift-g without specifying a line number, it will take you to the last line in the file.
Must Read
How do you get a specific line from a file in Unix using SED?
Linux Sed command allows you to print only specific lines based on the line number or pattern matches. “p” is a command for printing the data from the pattern buffer. To suppress automatic printing of pattern space use -n command with sed.