Tagged Questions
1
vote
1answer
176 views
How can I get this java command to act on each file found by a find command?
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 ...
4
votes
2answers
2k views
Looking for a Java class in a set of JARs with find, unzip, grep
I was trying to find the JAR containing a Java Class. JARs are in zip format.
My first attempt was:
$ find -name "*3.0.6.RELEASE.jar" | xargs -l1 unzip -l \
| grep stereotype.Controller
...