BASH photo gallery
Revision as of 16:57, 15 July 2019 by Michael Murtaugh (talk | contribs) (Created page with "```bash cat << EOF > index.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <style> div.image { float: left; } </style> </head> <body> EOF for i in *.JPG do t...")
```bash cat << EOF > index.html <!DOCTYPE html> <html> <head>
<meta charset="utf-8">
<style> div.image {
float: left;
} </style> </head> <body> EOF for i in *.JPG do t=${i%*.JPG}.thumb.jpg if [ ! -f $t ]; then
echo convert -resize 360x360 $i $t convert -resize 360x360 $i $t
fi
echo "
<a href=\"$i\"></a>
" >> index.html
done cat << EOF >> index.html </body> </html> EOF ```