Update and rename v-file-replace to v-file-replace-string

This commit is contained in:
myvesta 2020-08-30 05:08:31 +02:00 committed by GitHub
parent ea0fa49d0e
commit 3c899178b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

17
bin/v-file-replace-string Normal file
View 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);