[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] ack '\-\>Promotion'



On Mar 4, 2010, at 5:07 PM, Jay Hannah wrote:

> $ ack '\-\>Promotion'

Actually, you don't need to quote those because they're not regex chars, and the '' keeps them from being interpolated by the shell, so you can just say

ack '->Promotion'

If you DID have regex characters you wanted to escape all of, like

ack '\*\*\*WARNING\*\*\*'

you can use the -Q for quoting the entire string

ack '***WARNING***'

xoxo,
Andy

--
Andy Lester => andy@petdance.com => www.theworkinggeek.com => AIM:petdance