Print the nth line of a file

Uses sed to print the the the nth line of a file. This is faster than most other solutions since `NUMq` immediately quits when the line number is hit.

Authored by: anubhava
Brought to you by Warp, a free terminal reimagined to work like a modern app.
line_number
file_path

Command
Copy
sed 'line_numberq;d' file_path
Tags