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: anubhavaline_number
file_path
Command
Copy
sed 'line_numberq;d' file_path
Tags
Edit in GitHub
Copied