How can I get this java command to act on each file found by a find command?

view story

http://unix.stackexchange.com – I have this command inside a Bash shell script, the intention of which is to apply a java command, htmlcompressor, to each HTML file found in a directory: find $DIR -type f -name '*.html' -exec java -jar $BASEDIR/Upload/htmlcompressor-1.5.3.jar --remove-intertag-spaces {} \; However, while the output at the command line seems to indicate that it is finding each file and doing something with it, it's not actually writing the results to the files. According to the documentation for htmlcompressor, the usage is this: Usage: java -jar htmlcompressor.jar [options] [input] So there's suppo (HowTos)