Yes, I understand the interpretation now. Just confusing when you have a model in mind that almost always works.
On 12/2/15, Eric Blake <ebl...@redhat.com> wrote: > On 12/02/2015 06:14 AM, Mark Wotton wrote: >> hm. "grep -l '' empty" also doesn't print anything, so I guess it's >> consistent, at least. > > You want 'grep -L "hi there" ./empty', which says to print the names of > all files that did not contain any match (and not the names of all files > that had lines that didn't match). That is, -v and -L are different > types of negation. > > $ grep -L '' empty > empty > $ grep -Lv '' empty > empty > > The empty file has no matches to any patterns (whether or not the > pattern is negated with -v), so it shows up under -L. > > -- > Eric Blake eblake redhat com +1-919-301-3266 > Libvirt virtualization library http://libvirt.org > > -- A UNIX signature isn't a return address, it's the ASCII equivalent of a black velvet clown painting. It's a rectangle of carets surrounding a quote from a literary giant of weeniedom like Heinlein or Dr. Who. -- Chris Maeda