Is there a grep-like utility that will enable me to do grep searches with logic operators. I want to be able to nest and combine the logical constructs freely. For example, such asstuff like this should be possible:
grep (--contains=search_term1term1 ||&& --contains=search_term2term2) || (term1 && --not-contains==search_term3(term3 xor term4)) *
I realize this can be done with vanilla grep and additional bash scripting, but my goal here is to avoid having to do that.