Last active
November 4, 2023 14:54
-
-
Save karlarao/c14413ba48e84f4de4dac84a297da1f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# on mac: brew install tree | |
# on linux: yum install tree | |
## the XML output is 5 directories deep and filtering any folder name with "tmp" in it | |
tree -d -L 5 -X -I tmp /Users/karl/Dropbox/CodeNinja/GitHub | sed 's/directory/node/g'| sed 's/name/TEXT/g' | sed 's/tree/map/g' | sed '$d' | sed '$d' | sed '$d'| sed "1d" | sed 's/report/\/map/g' | sed 's/<map>/<map version="1.0.1">/g' > /Users/karl/Dropbox/CodeNinja/GitHub/Gitmap.mm | |
## to filter multiple folders do the following | |
tree -L 7 -I "tmp|node_modules|bower_components" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@C-Bam for PS it'd be something like: