l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2011 Jul 31 12:25

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] HTML coding conundrum
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] HTML coding conundrum

You can generate links to a bunch of files using "find":

cd /path/to/parent_directory
find directory_name -type f \( -name '*.jpg' -o -name '*.jpeg' -o -name '*.gif' \) | while read filename ; do echo "<a href="" done

The "-o" means OR, so you can add more file extensions in the find command.

You can put this output into your HTML if you just want to generate a bunch of links. Or you can use the find command this way to bulk post pictures to some online gallery (e.g. a Drupal or Wordpress site) using curl or wget instead of echo.


On Fri, Jul 29, 2011 at 6:46 PM, Darth Borehd <darth.borehd@gmail.com> wrote:
I have a lot of club media files (pictures, videos, and sound) on a drive running Ubuntu 10.04 LTS.  I want to share these media files on the Internet.  I figure the best way is to make a webpage with links that correspond to the files, so clicking on a link downloads the file or plays it in browser. 

The problem is there are thousands of these little files.  I tried manually creating links by copying and pasting, but it's taking me to long. 

I tried webmagick, but I found it only works on picture files.  Otherwise, it looks to be exactly what I want. 

Any suggestions?

vox-tech mailing list

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!