mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 11:55:24 +02:00
perl: minor tweaks to command descriptions (#3554)
This commit is contained in:
parent
7d5444997f
commit
caebe85050
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
`perl -c {{script.pl}}`
|
||||
|
||||
- Parse and execute a perl statement:
|
||||
- Parse and execute a Perl statement:
|
||||
|
||||
`perl -e {{perl_statement}}`
|
||||
|
||||
|
@ -31,6 +31,6 @@
|
|||
|
||||
`perl -p0e 's/{{foo\nbar}}/{{foobar}}/g' {{input_file}} > {{output_file}}`
|
||||
|
||||
- Run a regular expression on `stdin`, printing out first capture group for each line:
|
||||
- Run a regular expression on `stdin`, printing out the first capture group for each line:
|
||||
|
||||
`cat {{path/to/input_file}} | perl -nle 'if (/.*({{foo}}).*/) {print "$1"; last;}'`
|
||||
|
|
Loading…
Add table
Reference in a new issue