Skip to content

Instantly share code, notes, and snippets.

@philipesteiff
Created April 10, 2019 16:38
Show Gist options
  • Save philipesteiff/4c7472ee15deee12b0010715995988ab to your computer and use it in GitHub Desktop.
Save philipesteiff/4c7472ee15deee12b0010715995988ab to your computer and use it in GitHub Desktop.
Get feature modules name
#!/usr/bin/env bash
get_module_names() {
array=( $(cat $(pwd)/settings.gradle | grep -o 'feature:[A-z_-]\+') )
for el in ${array[*]}; do
echo $el | grep -o "[A-z_-]\+\$"
done
}
get_module_names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment