*: always backquote stdin, stdout and stderr (#9584)
This commit is contained in:
@@ -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}}/'`
|
||||
|
||||
Reference in New Issue
Block a user