Sometimes you want grep to tell you what files have a pattern within a directory. Here is how to do it:
grep -H JAVA_HOME=/ /usr/local/terracotta/bin/* /usr/local/terracotta/platform/bin/*
/usr/local/terracotta/bin/start-tc-server.sh:export JAVA_HOME=/usr/java/jdk1.6.0_21/
/usr/local/bin/stop-tc-server.sh:export JAVA_HOME=/usr/java/jdk1.6.0_21/
/usr/local/bin/tim-get.sh:export JAVA_HOME=/usr/java/jdk1.6.0_21/
/usr/local/platform/bin/make-boot-jar.sh:export JAVA_HOME=/usr/java/jdk1.6.0_21/
Enjoy!
No comments:
Post a Comment