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

Regards,
Gary




Reply via email to