I'm writing a little bash script to wrap grep for many, similar grep searches I do. One thing I'd like to automate is whether the output gets piped to less, or straight to stdout (depending on the ...