Advertisement
j0h

make web page of limages

j0h
Dec 8th, 2014
442
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. #!/bin/bash
  2. #make page:
  3. echo "Content-type: text/html"
  4. echo ""
  5. echo "<!DOCTYPE html><html><head><title>Sho them images</title></head><body>" > g.html
  6. #touch out.html && rm out.html
  7.  
  8.     for i in ls *.jpg
  9.     do
  10.     #echo -e "<img src=\"" $i "\">" >> out.html
  11.     echo -e "<img src=\""$i"\" width=\"200\" height=\"200\"><br>"  >> g.html
  12.     done
  13.  
  14. echo "<br></body></html>" >> g.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement