Skip to content

Instantly share code, notes, and snippets.

@attebury
Created June 16, 2011 22:15
Show Gist options
  • Save attebury/1030425 to your computer and use it in GitHub Desktop.
Save attebury/1030425 to your computer and use it in GitHub Desktop.
List and link all documents and create a new html page
ls | egrep '.pdf|.doc' | sed 's/^/http:\/\/www.thedomain.com\//' | sed 's|\(.*\)|<p><a href=\1>\1<\/a><\/p>|' > list.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment