Author Topic: List-all-occurrences negation  (Read 2181 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
List-all-occurrences negation
« on: July 18, 2017, 09:16:30 PM »
Much like we have keep-search and the opposite delete-search, an opposite of "List-all-occurrences" would be nice.
list each line that doesn't match.

See also "grep -v"

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6862
  • Hero Points: 528
Re: List-all-occurrences negation
« Reply #1 on: July 19, 2017, 01:04:09 AM »
There's a command which almost does what you want. On the SlickEdit command line try "allnot /if".  This will hide all lines which contain "if".

I don't use the "allnot" command much but I often use the "all" command which does the opposite.