bug-grep
[Top][All Lists]
Advanced

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

bug#56453: 回复: 回复: bug#56453: Bug reports


From: Paul Eggert
Subject: bug#56453: 回复: 回复: bug#56453: Bug reports
Date: Sat, 9 Jul 2022 13:24:09 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1

On 7/9/22 05:16, GUI wrote:
Thank you very much.I think there are something wrong with my expression.

grep Download

When you type something, hitting grep will do a row match

The "grep Download" command has no file.So it is the case that"If no FILE is given, recursive 
searches examine the working  directory,  and nonrecursive searches read standard 
input. ".

When I type the command,the terminal will do two things which are 'recursive 
searches Examine the working directory' and 'nonrecursive searches read 
standard input'.In this case, Download should be used as a matching string, but 
instead of going through all the files in the current directory, the terminal 
waits for the user's input.

So I think it's a little different from what you wrote.


Plain "grep Download" does not use -r, so it's not recursive. Also, it specifies no FILE operands, so the sentence you quoted applies, and it searches standard input (in this case, the terminal).

The command "grep -r Download", in contrast, is nearly equivalent to "grep -r Download .". That is, it recursively searches the working directory, ignoring standard input.






reply via email to

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