i have directory couple of php files in multiple levels. want execute following command of these php files.
php ../../i18n/add-textdomain.php -i bulk-delete file_name.php so, wrote following find command , piped xargs
find . -iname "*.php" -type f -print0| xargs -0 php ../../i18n/add-textdomain.php -i bulk-delete the php command expects php file last argument. assumed xargs append files listed find @ end. doesn't seem happening.
how tell xargs add arguments @ end of command?
xargs append items in stdin end of command default. can use -i override that, seems else going wrong you. need 1 php file per command? if so, use -n 1.
Comments
Post a Comment