If you do a "man grep" you will see what the options for "grep" does. The "l" option lists found items like below.
"-type f" = regular file
"-exec grep -l cpp {} \;" = this basically says, if find finds any files, look inside of the file for the string "cpp" and list them.
(%:~)- find ~ -type f -exec grep -l cpp {} \;
/home/test/C++/Makefile
/home/test/C++/pointer
If you have a question on what a option does for a command, just type "man command".
Last edited by ckoniecny; 03-20-2006 at 01:59 PM.
|