I have hard time understanding the xargs part of this command :
find -type f | sed 's/ /\\ /g' | xargs -ifil file fil | \
grep ELF | grep executable | cut -d: -f1 | xargs -ifil find fil -exec chmod 744 {} \;
What I have understood: looking for file not directory, then replacing " " by "\ ", then give the output to xargs that will pass it to the command file? why using the -i to replace? Then grep ELF and executable, take the first column by using : delimeter, do again an xargs with the same options to chmod 744 ?
find -execand proper shell quotingfilis just the author's choice for thereplace-str- a more commonly used string is{}so for example you will often seexargs -I {} somecommand {}(the lower caseiis also deprecated in favor of upper caseI)