News for hackers. Stuff that matters.
Re:CLI: Improved by Sean1708 on Friday August 31, 2018 @08:40AM (#17885022)
No, -v will return 0 unless every line matches:

  $ cat > foo
  here's
  some
  random
  text
  $ grep -v some foo; echo $?
  here's
  random
  text
  0
  $ grep -v bar foo; echo $?
  here's
  some
  random
  text
  0
  $ grep -vE "(here's|some|random|text)" foo; echo $?
  1

There are no comments on this comment yet.