perl: minor tweaks to command descriptions (#3554)

italian
Waldir Pimenta 2019-11-12 08:50:23 +00:00 committed by Owen Voke
parent 7d5444997f
commit caebe85050
1 changed files with 2 additions and 2 deletions

View File

@ -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;}'`