I want to run the find command to grep all files except those that end with ".log" which have a certain string in. I understand there's a -not flag in Linux but I'm on Solaris & it doesn't seem to exist there.
This works file on all files ($1 because it's in a script)
but I can't figure out how to omit the masses of log files which I know also have the string in. Does anyone have any suggestions?
Thanks as usual - Chris
This works file on all files ($1 because it's in a script)
Code:
find . -type f -print -exec grep -i $1 {} \;
but I can't figure out how to omit the masses of log files which I know also have the string in. Does anyone have any suggestions?
Thanks as usual - Chris