On 7/8/22 21:53, GUI wrote:
" If no FILE is given, recursive searches examine the working  directory,  and 
nonrecursive searches read standard input. "You use the word 'and' to say 'If no 
FILE is given' when this happens, 'recursive searches Examine the working directory' and 
'nonrecursive searches read standard input'. This statement is inconsistent with the 
result of running in terminal.

Not at all. Several FILEs were given in your example:

$ grep Download dwad dawdwa Downloads Downloads
grep: dwad: No such file or directory
grep: dawdwa: No such file or directory
grep: Downloads: Is a directory
grep: Downloads: Is a directory

Here 'dwad', 'dawdna', 'Downloads', and 'Downloads' are all FILEs. Since it's not the case that "no FILE is given", for your example it doesn't matter what the rest of that sentence says.




Reply via email to