Skip to content
Snippets Groups Projects
Commit f28ad62a authored by jacques.dainat_ird.fr's avatar jacques.dainat_ird.fr
Browse files

fix -p param

parent 536c7b87
No related branches found
No related tags found
No related merge requests found
Pipeline #84601 passed
......@@ -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 | | |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment