diff --git a/pages/common/sed.md b/pages/common/sed.md index 3316741d71..22114bf287 100644 --- a/pages/common/sed.md +++ b/pages/common/sed.md @@ -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}}`