John Oliver wrote:
I want to grep for a given value, and if that value is found do X, and if it isn't found, do Y. How do I do that?
if grep -q regexp ; then # do something if found else # do something if not found fi cheers :) -kelsey -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
