Skip to content

Commit 8459590

Browse files
authored
Add negation operator example to filter docs (#6150)
1 parent 60a6d55 commit 8459590

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/output-formats-filters.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ Other fields in the output may be searched by using a simple expression in the `
108108
```shell
109109
$ drush pm:list --filter='status=enabled'
110110
```
111+
112+
Exclude rows via the negation operator `!`:
113+
114+
```shell
115+
drush watchdog:show --filter="type!=locale"
116+
```
117+
111118
To search for fields that contain a string using the operator `*=`, or match a regular expression with the `~=` operator. For example, to find all views whose machine name contains the word *content*:
112119
```shell
113120
drush views:list --filter='machine-name*=content'

0 commit comments

Comments
 (0)