If you have GNU grep:
Code:
rm "$(grep -L 'pl/sql procedure successful' *)"
Otherwise you can pipe something like this to rm
(assuming the filenames contain no embedded spaces
or other pathological characters):
Code:
awk '{c[FILENAME]}
/pl\/sql procedure successful/{c[FILENAME]++}END{
for(f in c)if(c[f]==0)print f}' *|xargs rm
Or write a shell loop:
Code:
for f in *;do grep -q 'pl/sql procedure successful' "$f"|| rm "$f";done
P.S. If your grep doesn't support the q option, use
Code:
grep 'pl/sql procedure successful' "$f">/dev/null 2>&1