[wplug] piping grep

Jonathan Billings billings at negate.org
Wed Jun 17 13:27:33 EDT 2009


On Wed, Jun 17, 2009 at 09:46:22AM -0400, Matthew Beckler wrote:
> Whoops, sorry for the double-post. I should have actually tested this
> before posting. I think you actually need to have the double-quotes
> outside the backticks:
> 
> grep 'Failed password' /var/log/auth.log | grep "`data +'%b %d'`"

Or, you could use date's formatting to deal with it:

grep 'Failed password' /var/log/auth.log | grep `date +'"%b %d"'`

(it's still way too many quotes)

-- 
Jonathan Billings <billings at negate.org>


More information about the wplug mailing list