From ignored_mailbox at yahoo.com.au Fri Jun 5 18:01:55 2015 Content-Type: multipart/mixed; boundary="===============4310588176787523416==" MIME-Version: 1.0 From: Tim To: users at lists.fedoraproject.org Subject: Re: [Off Topic] Directory Listing to HTML Date: Wed, 19 Sep 2007 12:12:08 +0930 Message-ID: <1190169728.2697.12.camel@localhost.localdomain> In-Reply-To: 46EFF93A.4010200@beta.intcomgrp.com --===============4310588176787523416== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Tue, 2007-09-18 at 12:13 -0400, James Kosin wrote: > Anyone have a good script to generate an HTML file for a directory > listing? If you're using Apache, it can do that all by itself. You can even customise what it does above and below the listing. The following very simple BASH script generates a file with a listing of the current directory, vaguely similar to how Apache generates one. echo "testing

testing

" for file in * do echo "
$file
" done echo "" You could do something like that, but you'd probably want to expand on it. -- = [tim(a)bigblack ~]$ uname -ipr 2.6.22.4-65.fc7 i686 i386 Using FC 4, 5, 6 & 7, plus CentOS 5. Today, it's FC7. Don't send private replies to my address, the mailbox is ignored. I read messages from the public lists. --===============4310588176787523416==--