0

I use the following to grep in the current directory and all subdirectories:

grep -r 'some text' */*

This works fine in Cygwin, but when I configure Windows cmd emulators like Console2 or ConEmu to use Cygwin, the command does not work:

grep: */*: Invalid argument
  1. Is there some technical reason why */* does not port to these applications?
  2. Is there another way of grepping across the current directory and subdirectories?

Many thanks

4

1 回答 1

0

*/*对于 unix 风格的终端仿真器中的当前目录不正确,使用./*甚至只是.可以工作。

使用.or./*可能是不必要的,但可能会解决无效参数问题。

于 2012-08-13T10:28:43.003 回答