bluethundr has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; foreach (@ARGV) { while (<>) { s/\s+myOldPass/ Onl33In05h15notmyreallpass/g; s/\s+myDBUser/ my-secret-db-user/g; print; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Files not altered
by zwon (Abbot) on Jan 04, 2009 at 14:32 UTC | |
|
Re: Files not altered
by zentara (Cardinal) on Jan 04, 2009 at 14:54 UTC | |
|
Re: Files not altered
by Tanktalus (Canon) on Jan 04, 2009 at 22:20 UTC | |
|
Re: Files not altered
by balakrishnan (Monk) on Jan 05, 2009 at 05:07 UTC | |
by wol (Hermit) on Jan 05, 2009 at 14:38 UTC | |
by balakrishnan (Monk) on Jan 06, 2009 at 10:21 UTC | |
by Anonymous Monk on Jan 07, 2009 at 16:34 UTC | |
|
Re: Files not altered
by Anonymous Monk on Jan 07, 2009 at 16:28 UTC | |
|
Re: Files not altered
by Ciclamino (Sexton) on Jan 08, 2009 at 16:14 UTC |