Skip to content

Oleander Donovan's IT blog

Some nuggets of wisdom about coding and tweaking software

  • java
  • debian
  • xfce
  • firefox
  • cygwin
  • bash
  • jvm

Month: February 2012

Shell script to generate index.html (directory listing)

A simple shell script – let’s call it index-html.sh – to turn a list of file names into html links:

#!/bin/sh

echo '<html><body>'
sed 's/^.*/<a href="&">&<\/a><br\/>/'
echo '</body></html>'

Example use:

ls | index-html.sh > index.html
Posted on February 17, 2012February 17, 2012 by oldoldoPosted in bash, osLeave a comment

apps bash coding conference css cygwin debian dev-tools eclipse firefox games git gui html intellij java javaone jenkins jquery linux mac os maven music opinion os personal version control virtualbox windows xfce

Recent Posts

  • Install Epson Scan 2 on Debian
  • Use DMZ-Red mouse cursor as default
  • Flexiblere Online-Meetings mit “Gather”

Recent Comments

oldoldo's avataroldo on Install and maintain Cygwin wi…
Ale's avatarAle on Append entries to Windows user…
Blbec's avatarBlbec on Install and maintain Cygwin wi…

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 74 other subscribers
February 2012
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
272829  
« Jan   Mar »

Links

  • About me
  • me@github

Meta

  • Create account
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com
Blog at WordPress.com.
  • Subscribe Subscribed
    • Oleander Donovan's IT blog
    • Join 74 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Oleander Donovan's IT blog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar