Skip to content

Instantly share code, notes, and snippets.

@yoggy
Created February 10, 2015 09:25
Show Gist options
  • Save yoggy/f9cc7ab1dbe581cd2fe5 to your computer and use it in GitHub Desktop.
Save yoggy/f9cc7ab1dbe581cd2fe5 to your computer and use it in GitHub Desktop.
lsの結果をhtmlに出力するワンライナー?
$ ls * | (echo "<html><body>" ; sed -e 's/\(^.*$\)/\<a href=\"\1\"\>\1\<\/a\>/' ; echo "</body></html>")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment