소스 검색

perl: improve descriptions of -pie examples

Waldir Pimenta 8 년 전
부모
커밋
c3146ede2a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      pages/common/perl.md

+ 2 - 2
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}}`