Last active
July 6, 2022 01:17
-
-
Save pavelskipenes/de61dbbbe273e1d60183fa1d6f2fa4a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "<?php\n\ndeclare(strict_types=1);\n\nnamespace\n\n\\App;" | tee -a $(find ./ -name "*.php") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example:
Inserts following code above into all .php files recursively from current working directory.
another alternative would be to
cat some_template.txt | tee ...