Skip to content

Instantly share code, notes, and snippets.

@swarupsro
Created December 3, 2020 10:04
Show Gist options
  • Save swarupsro/e8304debd2645218bf15fb2ac9abd6d9 to your computer and use it in GitHub Desktop.
Save swarupsro/e8304debd2645218bf15fb2ac9abd6d9 to your computer and use it in GitHub Desktop.
Directory Dumper
#!/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