On 2018-10-21, rhkra...@gmail.com <rhkra...@gmail.com> wrote: > > Thanks for the reply, and I like that ability to use standard input! > > I tried the following, and the output from -L and -l seems almost the same, > except for that extra line that says "(standard input)" when I use the -l > option. For -l, I guess grep's returning the "file" (standard input) when the first match is found (as per the man page).
For -L, I guess it will keep going until you give it test, at which point it stops, returning nothing (stops at the first non-match). We'll wait for more informed theories to follow. > Any further clarification / clues would be appreciated. > ><quote> > rhk@s19:/rhk/ked1$ grep -l test - > one > two > test > (standard input) > rhk@s19:/rhk/ked1$ grep -L test - > test > rhk@s19:/rhk/ked1$ grep -L test - > one > two > test > rhk@s19:/rhk/ked1$ grep -l test - > one > two > test > (standard input) > rhk@s19:/rhk/ked1$ ></quote> > > > -- "Now she understood that Anna could not have been in lilac, and that her charm was just that she always stood out against her attire, that her dress could never be noticeable on her." Leo Tolstoy, Anna Karenina