Created
January 9, 2019 14:13
-
-
Save sukovec/599e1b748a0683cfd736f908228f22a3 to your computer and use it in GitHub Desktop.
Create simple html link-list from folder structure
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
(echo "<style>a {display: block}</style>" ; find devfest -type d | while read line ; do ( cd $line ; echo "<h1>Directory: $line</h1>" ; ls | while read file ; do echo "<a href='$line/$(echo $file | sed 's/%/%25/g')'>$file</a>" ; done ) done) > devfest.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment