Search content in linux with find & grep
时间:2010-07-29 来源:hiyangyong
Example: find /opt/bea/ directory and grep all the files that contains "JAVA_HOME" defination.
Command 1:
find /opt/bea -name "*.*" | xargs grep "JAVA_HOME="
Command 2:
find /opt/bea -type f -exec grep 'JAVA_HOME=' -l {} \;
相关阅读 更多 +