Skip to content

Instantly share code, notes, and snippets.

@gibbs
Created April 30, 2015 22:47

Revisions

  1. gibbs created this gist Apr 30, 2015.
    44 changes: 44 additions & 0 deletions move-drupal7-non-core
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    find . -maxdepth 1 -type d \
    -not -iname "." \
    -and -not -iname "aggregator" \
    -and -not -iname "block" \
    -and -not -iname "blog" \
    -and -not -iname "book" \
    -and -not -iname "color" \
    -and -not -iname "comment" \
    -and -not -iname "contact" \
    -and -not -iname "contextual" \
    -and -not -iname "dashboard" \
    -and -not -iname "dblog" \
    -and -not -iname "field" \
    -and -not -iname "field_ui" \
    -and -not -iname "file" \
    -and -not -iname "filter" \
    -and -not -iname "forum" \
    -and -not -iname "help" \
    -and -not -iname "image" \
    -and -not -iname "locale" \
    -and -not -iname "menu" \
    -and -not -iname "node" \
    -and -not -iname "openid" \
    -and -not -iname "overlay" \
    -and -not -iname "path" \
    -and -not -iname "php" \
    -and -not -iname "poll" \
    -and -not -iname "profile" \
    -and -not -iname "rdf" \
    -and -not -iname "search" \
    -and -not -iname "shortcut" \
    -and -not -iname "simpletest" \
    -and -not -iname "statistics" \
    -and -not -iname "syslog" \
    -and -not -iname "system" \
    -and -not -iname "taxonomy" \
    -and -not -iname "toolbar" \
    -and -not -iname "tracker" \
    -and -not -iname "translation" \
    -and -not -iname "trigger" \
    -and -not -iname "update" \
    -and -not -iname "user" \
    -printf 'Moving %f\n' \
    -exec mv -t ./../sites/all/modules/ {} \+