I'd like to find the files in the current directory that contain the text chrome.$ find . -exec grep chromefind: missing argument to `-exec'What am I doing wrong?
How to run find -exec?
find
You missed a ; or a + and a {}:find . -exec grep chrome {} \;orfind . -exec grep chrome {} +find will execute grep and will substitute {} with the filename(s) found. The difference between ; and + is that with ; a single grep command for each file is executed whereas with + as many files as possible are given as parameters to grep at once.