From caebe850509654e0cb973033b91857d9be30817f Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Tue, 12 Nov 2019 08:50:23 +0000 Subject: [PATCH] perl: minor tweaks to command descriptions (#3554) --- pages/common/perl.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/perl.md b/pages/common/perl.md index 2b59ec5e2..8a9e20cdd 100644 --- a/pages/common/perl.md +++ b/pages/common/perl.md @@ -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;}'`