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

jporkkahtc

  • Senior Community Member
  • Posts: 1249
  • Hero Points: 91
  • 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: 3726
  • Hero Points: 243
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.