I have a directory with a couple of PHP files in multiple levels. I want to execute the following command for all of these PHP files.
php ../../i18n/add-textdomain.php -i bulk-delete file_name.php
So, I wrote the following find command and piped it to xargs
find . -iname "*.php" -type f -print0| xargs -0 php ../../i18n/add-textdomain.php -i bulk-delete
The php command expects the PHP file to be the last argument. I assumed xargs will append the files listed by find at the end. But this doesn't seem to be happening.
How to tell xargs to add the arguments at the end of the command?