Assuming you want file sizes between 1000 and 1100 bytes: find . -type f -size +1000c -a -size -1100c ...
You can use find "$PWD", as in find "$PWD" -path '/dev' -prune -o -print, to search in the current directory by absolute path. Absolute path matches will then succeed.
You could use the following sed command: find -type f -name "*.php" -exec sed -i ':a;N;$!ba;s/<?\([ \n]\|echo\)/<?php \1/g' {} \; It is matching either a space or newline or the term echo after <? and then replaces it with <?php<match_found> Note that you don't need the xargs call. You can...
linux,bash,shell,gnu-findutils
You should be able to do with a single find command with an embedded shell command: find /PROD -type d -execdir sh -c 'for f in *.json; do /tmp/test.py "$f"; done' \; Note: -execdir is not POSIX-compliant, but the BSD (OSX) and GNU (Linux) versions of find support it; see...