Skip to content

Instantly share code, notes, and snippets.

@clarkwinkelmann
Created June 19, 2015 14:01
Show Gist options
  • Save clarkwinkelmann/ef5eaf0a908c998814d8 to your computer and use it in GitHub Desktop.
Save clarkwinkelmann/ef5eaf0a908c998814d8 to your computer and use it in GitHub Desktop.
Try all images from the directory as html backgrounds
#!/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