UnixHowTo: How to find a particular word in a list of files in UNIX?
I am about to find the string "sqlplus" in a list of shell scripts:-
$ find . -name "*.sh" -print | xargs grep -l sqlplus
./hasimsampleshell1.sh
./hasimsampleshell2.sh
$ find . -name "*.sh" -print | xargs grep sqlplus
./hasimsampleshell1.sh: $ORACLE_HOME/bin/sqlplus -s scott/tiger@localhost @testsql2.sql
./hasimsampleshell2.sh: $ORACLE_HOME/bin/sqlplus -s scott/tiger@localhost @testsql2.sql
Labels: Technical_HowTo_Unix
0 Comments:
Post a Comment
<< Home