find . -name '*.java' -exec grep -l 'phrase to search' {} \;
Note that this will do a recursive search inside the sub-directories as well. To search only in the current folder, the grep command is sufficient.
find . -name '*.java' -exec grep -l 'phrase to search' {} \;
rsync -cnrv --exclude-from=~/sync/exclude_patterns.txt /<source_folder>/ /<dest_folder>/
rsync -crv --exclude-from=~/sync/exclude_patterns.txt /<source_folder>/ /<dest_folder>/
awk 'BEGIN { FS="|";} {k1=$2; k2=$4; k=k1 k2; print "grep " k " acdata" ;}' accounts | sort -u | bash > filtdata
"two obscure academics -- Elinor Ostrom and Oliver Williamson -- one noted for her work on managing collective resources, and the other for his work on transaction costs."