*: always backquote stdin, stdout and stderr (#9584)

This commit is contained in:
pixel
2022-12-04 08:53:34 +01:00
committed by GitHub
parent 5f7fd20ee2
commit ab7a36fbe6
165 changed files with 207 additions and 207 deletions

View File

@@ -27,10 +27,10 @@
`perl -p -e 's/{{foo\nbar}}/{{foobar}}/g' {{path/to/input_file}} > {{path/to/output_file}}`
- Run a regular [e]xpression on stdin, printing matching [l]ines:
- Run a regular [e]xpression on `stdin`, printing matching [l]ines:
`cat {{path/to/file}} | perl -n -l -e 'print if /{{regular_expression}}/'`
- Run a regular [e]xpression on stdin, printing only the first capture group for each matching [l]ine:
- Run a regular [e]xpression on `stdin`, printing only the first capture group for each matching [l]ine:
`cat {{path/to/file}} | perl -n -l -e 'print $1 if /{{before}}({{regular_expression}}){{after}}/'`