I use this command to get a list of contrib enabled modules:
drush pm-list --type=module --status=enabled --no-core --format=list
Problem is, it also lists submodules, for example:
admin_menu
admin_menu_toolbar
So if I use this to reinstall the modules on another site:
Drush dl admin_menu admin_menu_toolbar
It causes errors. So I need to drush only:
Drush dl admin_menu
So how can I get the list of ONLY parent modules?
My goal is to get drush to display list of modules on the source site, but only folder names, not subfolders