mirror of
https://github.com/myvesta/vesta
synced 2025-07-16 10:03:23 -07:00
Update and rename v-file-replace to v-file-replace-string
This commit is contained in:
parent
ea0fa49d0e
commit
3c899178b4
1 changed files with 1 additions and 1 deletions
17
bin/v-file-replace-string
Normal file
17
bin/v-file-replace-string
Normal file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/php
|
||||
<?php
|
||||
|
||||
include ("/usr/local/vesta/func/main.php");
|
||||
include ("/usr/local/vesta/func/string.php");
|
||||
|
||||
myvesta_check_args (3, 'find replace file');
|
||||
|
||||
echo "Find: ".$find."\n";
|
||||
echo "Replace: ".$replace."\n";
|
||||
echo "File: ".$file."\n";
|
||||
|
||||
$r=myvesta_replace_in_file($find, $replace, $file);
|
||||
|
||||
if ($r) echo "Replacing done!\n";
|
||||
|
||||
myvesta_exit(0);
|
Loading…
Add table
Add a link
Reference in a new issue