Created
March 4, 2021 09:11
-
-
Save JayKandari/82ec7f3d96d191554d46c9cac8eb5eb1 to your computer and use it in GitHub Desktop.
Drush pm:list filter - Using regular expression to filter specific modules to show in `drush pml` command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
drush pml --filter='name~=#(mymodule1|mymodule2|mymodule3)#i' | |
# Output: | |
# -------------- ------------------------------------------- ---------- --------- | |
# Package Name Status Version | |
# -------------- ------------------------------------------- ---------- --------- | |
# My package My Module (mymodule1) Disabled | |
# Another pack Another module (mymodule2) Enabled | |
# My package My Module (mymodule3) Disabled | |
# -------------- ------------------------------------------- ---------- --------- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you are having trouble
drush cr
before you run this command. see drush-ops/drush#4264