LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > peonuser
User Name
Password

Notices


Old

Pictures to html

Posted 11-19-2014 at 06:21 AM by peonuser

Generate a web page three pics wide from a directory of pictures.

#!/bin/bash
# daffinitions
ls *.png > picdatafile
#ls *.jpg >> picdatafile
#ls *.JPG >> picdatafile
datafile="picdatafile"
htmlfile="test.html"
a=1
m="not done"
d=" "

#read the file
while read line
do fdata[$a]=$line
let a=a+1
done < $datafile...
Member
Posted in Uncategorized
Views 1278 Comments 0 peonuser is offline

  



All times are GMT -5. The time now is 06:15 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration