From c3146ede2a313a80840d54910859df6c7e51043b Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sat, 22 Apr 2017 14:40:57 +0100 Subject: [PATCH] perl: improve descriptions of -pie examples --- 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 8c1f5ce69..fb4850833 100644 --- a/pages/common/perl.md +++ b/pages/common/perl.md @@ -22,10 +22,10 @@ `perl -d {{script.pl}}` -- Replace all occurrences of a string in a file with another string, overwriting the file in-place: +- Loo[p] over all lines of a file, editing them [i]n-place using a find/replace [e]xpression: `perl -p -i -e 's/{{find}}/{{replace}}/g' {{filename}}` -- Same, saving an unmodified copy of the original file with a different extension: +- Run a find/replace expression on a file, saving the original file with a given extension: `perl -p -i'.old' -e 's/{{find}}/{{replace}}/g' {{filename}}`