1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-24 18:55:25 +02:00

sed: get nth line of a file

This commit is contained in:
James O'Beirne 2018-08-22 17:26:12 -04:00 committed by Agniva De Sarker
parent c46e5c1d26
commit 06942171bd

View file

@ -33,3 +33,7 @@
- Replace separator / by any other character not used in the find or replace patterns, e.g., #:
`sed 's#{{find}}#{{replace}}#' {{filename}}`
- Print only the `N`th line of a file:
`sed '{{N}}q;d' {{filename}}`