Find command in UNIX

Find text in the current folder and redirect output to OP1.txt

find . -name "*" -exec grep "FIND THIS TEXT" {} \;>> OP1.txt


Find text in the current folder and print the output on screen

grep "FIND THIS TEXT" `find .` |cut -d":" -f1 | grep -v properties | sort -u



find the text and print the file name along with the path on screen

find xxxxxPATH_TO_SEARCHxxxxxx -type f -exec grep -l 'FIND THIS TEXT' {} \;

Comments

Popular posts from this blog

Steps to Deploy the OFSAA application in WEBLOGIC server:

Client / Server Applications

Steps for OFSAA ALM cash flow generation