Skip to content

Instantly share code, notes, and snippets.

@walkerjam
Last active April 16, 2019 12:08
Show Gist options
  • Select an option

  • Save walkerjam/1eeeff7f84e689699b61286db4ca83da to your computer and use it in GitHub Desktop.

Select an option

Save walkerjam/1eeeff7f84e689699b61286db4ca83da to your computer and use it in GitHub Desktop.

Revisions

  1. walkerjam revised this gist Apr 16, 2019. No changes.
  2. walkerjam created this gist Apr 11, 2019.
    1 change: 1 addition & 0 deletions blockDrupalUsers.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    for DUID in `drush sqlq "select uid from users" | grep -v "^[01]$" | sort`; do drush ublk --uid=$DUID; done