1
0
Fork 0
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:
Waldir Pimenta 2019-11-12 08:50:23 +00:00 committed by Owen Voke
parent 7d5444997f
commit caebe85050

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