So, the PHP script returns (or maybe needs to echo the value?) a value, e.g. 32, I want the rest of the alias to rename file test.txt
to test32.txt
, so to append THAT value (32) to test
and append then the value .txt
, so to rename it. What is the command to take this value from PHP and use it in command mv test.txt test32.txt
?
Tha PHP script that I run is:
php getValue.php
This command returns a number value (e.g. 32).