[Top][All Lists]

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

bug#39582: --include only works with -r

From: Gary Johnson
Subject: bug#39582: --include only works with -r
Date: Wed, 12 Feb 2020 13:47:04 -0800
User-agent: Mutt/1.5.20 (2009-06-14)

On 2020-02-12, Fernando Roa wrote:
> this does not work
> grep yvertohor --include={*.R,*.Rmd}

Did you mean to follow that with an asterisk:

    grep yvertohor --include={*.R,*.Rmd} *

Otherwise, grep is waiting for text to appear on stdin.  Without -r,
you have to give grep a list of file(s) to search.  This is stated
in the second paragraph of the man page DESCRIPTION.

You could also have used

    grep yvertohor *.R *.Rmd

> workaround:
> use the -r  flag when using --include
> system: ubuntu


reply via email to

[Prev in Thread] Current Thread [Next in Thread]