Created
December 3, 2020 10:04
-
-
Save swarupsro/e8304debd2645218bf15fb2ac9abd6d9 to your computer and use it in GitHub Desktop.
Directory Dumper
This file contains 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
#!/bin/bash | |
for dirname in $(find . | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/") | |
do | |
echo "$dirname" >> dirdump.txt | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment