Created
June 19, 2015 14:01
-
-
Save clarkwinkelmann/ef5eaf0a908c998814d8 to your computer and use it in GitHub Desktop.
Try all images from the directory as html backgrounds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "<h1>BACKGROUND TEST</h1>" > test.html | |
for f in *.JPG; do echo "<p>$f</p><div style=\"background-image: url($f); height: 500px;\"></div>" >> test.html; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment