To show a graphical representation of the current sub-directories without files use the following linux command:
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
Example:
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
.
|-australia
|-ca
|---language
|-----fr
|-china
|---language
|-----zh-hans
|-default
|---language
|-----ca
|-----de
|-----es
|-----fr
|-----it
|-----zh-hans
|-----zh-hant
|-envs
|---ci
|---dev
|-----language
|-------ca
|-------es
|-------fr
|-------it
|-------zh-hans
|---local
|-----language
|-------ca
|-------es
|-------fr
|-------it
|-------zh-hans
|---prod
|---stage
|-fr
|---language
|-----fr
|-germany
|---language
|-----de
|-global
|-india
|-italy
|---language
|-----it
|-philippines
|-spain
|---language
|-----ca
|-----es
|-taiwan
|---language
|-----zh-hant
|-uae
|-uk
|-za
To display both folders and files use the following linux command:
find . | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/"
Example:
find . | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/"
.
|-australia
| |-.htaccess
| |-core.date_format.custom_standard_date_format.yml
| |-eu_cookie_compliance.settings.yml
| |-file_utility.fileutilityconfigurations.yml
| |-page_manager.page_variant.about-block_display-0.yml
| |-page_manager.page_variant.ogilvy-panels_variant-0.yml
| |-system.site.yml
| |-views.view.our_team.yml
| |-views.view.our_work_grid.yml
| |-views.view.region_list.yml
|-ca
| |-language
| | |-fr
| | | |-eu_cookie_compliance.settings.yml
| | | |-language.entity.fr.yml
| | | |-views.view.our_capabilities.yml
| | | |-views.view.our_team.yml
| | | |-views.view.our_work_grid.yml
| |-.htaccess
| |-block.block.languageswitcher.yml
| |-eu_cookie_compliance.settings.yml
| |-file_utility.fileutilityconfigurations.yml
| |-language.entity.fr.yml
| |-language.negotiation.yml
| |-metatag.metatag_defaults.node__careers.yml
| |-metatag.metatag_defaults.page_variant__about-block_display-0.yml
| |-page_manager.page_variant.about-block_display-0.yml
| |-pathauto.pattern.ba.yml
| |-pathauto.pattern.capabilities_taxonamy.yml
| |-pathauto.pattern.careers.yml
| |-pathauto.pattern.category.yml
| |-pathauto.pattern.ideas.yml
| |-pathauto.pattern.ideas_category.yml
| |-pathauto.pattern.our_capabilities.yml
| |-pathauto.pattern.our_work.yml
| |-pathauto.pattern.private_ideas_patterns.yml
| |-system.site.yml
| |-views.view.our_capabilities.yml
| |-views.view.our_team.yml
| |-views.view.our_work_grid.yml
| |-views.view.region_list.yml
| |-page_manager.page_variant.ogilvy-panels_variant-0.yml
| |-core.entity_form_display.node.careers.default.yml
| |-field.field.node.careers.field_half_image.yml
| |-field.field.node.careers.field_second_column.yml
| |-field.storage.node.field_module_type.yml
| |-gh_integration.settings.yml
| |-page_manager.page_variant.careers-panels_variant-0.yml
| |-responsive_image.styles.career_half_image.yml
| |-page_manager.page.team.yml
|-china
| |-language
| | |-zh-hans
| | | |-eu_cookie_compliance.settings.yml
| | | |-views.view.our_capabilities.yml
| | | |-views.view.our_team.yml
| | | |-views.view.our_work_grid.yml
| | | |-file_utility.fileutilityconfigurations.yml