I need to append the following code to the end to all the php files in a directory and its sub directory:
Inspired from @Dantastic answer :
echo "my text" | tee -a file1.txt | tee -a file2.txt