|
@@ -30,17 +30,20 @@ function ECHO_USAGE(){
|
|
|
global $argv;
|
|
global $argv;
|
|
|
|
|
|
|
|
echo "\n > Usage:\n";
|
|
echo "\n > Usage:\n";
|
|
|
- echo " \"php " . $argv[0] . " <t-dir> <search-regex> <replace-str>\"\n";
|
|
|
|
|
|
|
+ echo " \"php " . $argv[0] . " <t-dir> <search-regex> <replace-str>\"\n";
|
|
|
echo " where <t-dir> is the directory to traverse and\n";
|
|
echo " where <t-dir> is the directory to traverse and\n";
|
|
|
echo " <search-regex> is the regular expression to\n";
|
|
echo " <search-regex> is the regular expression to\n";
|
|
|
echo " search for, and <replace-str> is the raw string\n";
|
|
echo " search for, and <replace-str> is the raw string\n";
|
|
|
echo " to replace the search-regex with. Note that\n";
|
|
echo " to replace the search-regex with. Note that\n";
|
|
|
echo " <replace-str> is NOT a regular expression.\n";
|
|
echo " <replace-str> is NOT a regular expression.\n";
|
|
|
|
|
+ echo " If <replace-str> contains one or more whitespace\n";
|
|
|
|
|
+ echo " character(s), it must be enclosed within double-\n";
|
|
|
|
|
+ echo " quotation marks.\n";
|
|
|
|
|
|
|
|
echo "\n > Examples:\n";
|
|
echo "\n > Examples:\n";
|
|
|
- echo " > \"php " . $argv[0] . " . /.[a-z]+/ .jpg\"\n";
|
|
|
|
|
- echo " > \"php " . $argv[0] . " . /.[a-zA-Z]+/ .jpg\"\n";
|
|
|
|
|
- echo " > \"php " . $argv[0] . " . /.[a-zA-Z0-9]+/ .jpg\"\n";
|
|
|
|
|
|
|
+ echo " > \"php " . $argv[0] . " . /.[a-z]+/ .jpg\"\n";
|
|
|
|
|
+ echo " > \"php " . $argv[0] . " . /.[a-zA-Z]+/ .jpg\"\n";
|
|
|
|
|
+ echo " > \"php " . $argv[0] . " . /.[a-zA-Z0-9]+/ \".jpg\"\"\n";
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|