mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 16:13:31 +02:00
perl: add pie example per issue #1239
This commit is contained in:
parent
cd38a006d8
commit
8b85207f35
1 changed files with 8 additions and 0 deletions
|
@ -21,3 +21,11 @@
|
|||
- Run a Perl script in debug mode, using `perldebug`:
|
||||
|
||||
`perl -d {{script.pl}}`
|
||||
|
||||
- Replace all occurrences of a string in a file with another string, overwriting the file in-place:
|
||||
|
||||
`perl -p -i -e 's/{{find}}/{{replace}}/g' {{filename}}`
|
||||
|
||||
- Same, saving an unmodified copy of the original file with a different extension:
|
||||
|
||||
`perl -p -i'.old' -e 's/{{find}}/{{replace}}/g' {{filename}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue