![]() |
|
P is for Practical | |
PerlMonks |
Re: perl's command line snippet which I read from a perl article ( perl tutrous )by merlyn (Sage) |
on Sep 06, 2006 at 14:47 UTC ( #571475=note: print w/replies, xml ) | Need Help?? |
I have been known to use perl -pi-DIST -e0 file1 file2 file3....
as a "poor man's change control", to save the "distribution" versions of a Makefile or config file as "Makefile-DIST" and so on. The nice thing about the in-place "non-edit" is that permissions and ownership are retained automatically.
-- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|