Created
January 16, 2009 15:00
-
-
Save sneeu/47948 to your computer and use it in GitHub Desktop.
List all files in a directory and create links to each of them.
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
ls -1 *.html | awk '{print "<li><a href=\"" $1 "\">" $1 "</a></li>"}' > index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment