I wanna save the output of the following command to a variable:
#!/bin/bash php -f myFile.php
How can I do?
You can do something like so.
OUTPUT=`php -f myFile.php` echo $OUTPUT