mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 19:55:24 +02:00
sed: minor syntax fix
This commit is contained in:
parent
06942171bd
commit
e75baf7d73
1 changed files with 3 additions and 3 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
- Print only text between n-th line till the next empty line:
|
||||
|
||||
`sed -n '{{line_number}},/^$/p' {{filename}}`
|
||||
`sed -n '{{n}},/^$/p' {{filename}}`
|
||||
|
||||
- Apply multiple find-replace expressions to a file:
|
||||
|
||||
|
@ -34,6 +34,6 @@
|
|||
|
||||
`sed 's#{{find}}#{{replace}}#' {{filename}}`
|
||||
|
||||
- Print only the `N`th line of a file:
|
||||
- Print only the n-th line of a file:
|
||||
|
||||
`sed '{{N}}q;d' {{filename}}`
|
||||
`sed '{{n}}q;d' {{filename}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue