1

We have various archive files in a folder, and I'm trying to recursively search through these for a particular string. I've found lots of examples of various ways to do this, but I've not been successful. This is from my latest iteration:

find . -name "*.gz" -print -exec zcat {} | grep -a -i "NTDS"

With the above, I'm getting "find: missing argument to -exec". Can someone point out what I'm missing? Thanks

Cyrus
  • 84,225
  • 14
  • 89
  • 153
agsYAV49
  • 11
  • 2

0 Answers0