From: James B. Byrne byrnejb@harte-lyne.ca
What I would like to discover is the functional equivalent of this: find /path/to/archives/*.html -print | xargs -I {} fmt -s {} > {} This syntax does not work of course because the xargs file name substitution only occurs once in the initial argument list of the following command. But, this example does describe the effect I wish to obtain, to have the original file name receive the reformatted contents.
What about a simple: find ... | while read F; do ... "$F"; done
JD