From f28ad62a64977671c946fca10ff09b8b7c7c575c Mon Sep 17 00:00:00 2001 From: "jacques.dainat_ird.fr" <jacques.dainat@ird.fr> Date: Thu, 6 Mar 2025 19:41:27 +0000 Subject: [PATCH] fix -p param --- docs/pages/bash_manip/bash_manip-7-sed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/bash_manip/bash_manip-7-sed.md b/docs/pages/bash_manip/bash_manip-7-sed.md index ff49bf4..72670c9 100644 --- a/docs/pages/bash_manip/bash_manip-7-sed.md +++ b/docs/pages/bash_manip/bash_manip-7-sed.md @@ -49,7 +49,7 @@ sed 'FLAG/<pattern>/<string>/FLAG' |----------|----------| ----| ----| ----| ----| ----| ----| q | Quit after a line (`/<pattern>/q` or `<integer>q`) | | x | x | | | | d | Delete lines (`/<pattern>/d` or `<integer>d`) | | x | x | | | | - p | Print matched lines (`-n '/<pattern>/p'`) | Only with `-n` option | | x | | | | + p | Print matched lines (`-n '/<pattern>/p'` or `-n '<integer>p'`) | Only with `-n` option | | x | x | | | a | Append text after a line (`/<pattern>/a Add new text after`) | On macOS (BSD sed) the command requires a backslash (`\`) and a newline. | | | x | | | i | Insert text before a line (`/<pattern>/i Add new text before`) | On macOS (BSD sed) the command requires a backslash (`\`) and a newline | | | x | | | c | Change entire line (`/<pattern>/c This is a new line`) | | | | x | | | -- GitLab