Re: [Hampshire] Escape characters with man | grep

Top Page

Reply to this message
Author: kish
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Escape characters with man | grep
On Mon, May 10, 2010 at 3:05 PM, Owain Clarke <simbobo@???> wrote:
> I'm sure this is an easy one for you:-
>
> If I want to read a line from a man page with a character which needs
> escaping, how do I do it? For example, to read the -r option of rsync:-
> man rsync | grep -r
> produces no output, presumably because the - needs escaping.


kish@Griffin:~$ man rsync|grep "\-av"

something like this.

---------------
Esse Quam Videri
krisk.wordpress.com