I'd like to find the files in the current directory that contain the text "chrome".
$ find . -exec grep chrome
find: missing argument to `-exec'
What am I doing wrong?
|
I'd like to find the files in the current directory that contain the text "chrome".
What am I doing wrong? |
||||
|
|
|
You missed a
or
|
|||||
|
|
You don't need to use
...or even recursively for folder and everything under it:
|
|||||||||
|
you can also do:
The first shows you the lines in the files, the second just lists the files. Caleb's option is neater, fewer keystrokes. |
|||||||||||||
|