johnkasta has asked for the wisdom of the Perl Monks concerning the following question:
if ((!($session_login)) or ($session_access < 5)) { header("Window-Target: _top"); header("Location: index.php"); }
if ((!($session_login)) or ($session_access < 5)) { header("Window-Target: _top"); header("Location: index.php"); exit; }
perl -pi -w -e 's/header\(\"Window\-Target: _top\"\);header\(\"Locatio +n: index.php\"\); /header\(\"Window\-Target: _top\"\);header\(\"Locat +ion: index.php\"\);exit;/g;' *.php
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: find and replace from shell
by jwkrahn (Abbot) on Jun 16, 2010 at 19:38 UTC | |
by johnkasta (Initiate) on Jun 16, 2010 at 19:58 UTC | |
by jwkrahn (Abbot) on Jun 16, 2010 at 21:13 UTC | |
by johnkasta (Initiate) on Jun 17, 2010 at 15:03 UTC | |
by johnkasta (Initiate) on Jun 16, 2010 at 20:41 UTC | |
by AnomalousMonk (Archbishop) on Jun 16, 2010 at 23:30 UTC | |
|
Re: find and replace from shell
by johnkasta (Initiate) on Jun 16, 2010 at 19:41 UTC | |
by graff (Chancellor) on Jun 17, 2010 at 07:32 UTC | |
by johnkasta (Initiate) on Jun 17, 2010 at 16:33 UTC | |
by graff (Chancellor) on Jun 17, 2010 at 17:08 UTC | |
by johnkasta (Initiate) on Jun 17, 2010 at 17:37 UTC |