I'd like to use find to report files under the following conditions:
- If the file contains the word "Serializable"
- Then report the file if it does NOT contain the word "serialVersionUID"
Something like:
find . -name "*.java" -exec grep "Serializable" {} \; <magic stuff here> grep "serialVersionUID" {} \; -print
So am I smoking crack and would be better served by awk?
Thanks for your help.