Skip to content

Commit

Permalink
Add negation operator example to filter docs (#6150)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman authored Oct 30, 2024
1 parent 60a6d55 commit 8459590
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/output-formats-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ Other fields in the output may be searched by using a simple expression in the `
```shell
$ drush pm:list --filter='status=enabled'
```

Exclude rows via the negation operator `!`:

```shell
drush watchdog:show --filter="type!=locale"
```

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*:
```shell
drush views:list --filter='machine-name*=content'
Expand Down

0 comments on commit 8459590

Please sign in to comment.