Skip to content

Instantly share code, notes, and snippets.

@sneeu
Created January 16, 2009 15:00
Show Gist options
  • Save sneeu/47948 to your computer and use it in GitHub Desktop.
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.
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