Skip to content

Instantly share code, notes, and snippets.

@rtomayko
Created October 16, 2009 11:16
Show Gist options
  • Select an option

  • Save rtomayko/211747 to your computer and use it in GitHub Desktop.

Select an option

Save rtomayko/211747 to your computer and use it in GitHub Desktop.
#!/bin/sh
file="preview.html"
trap "rm -f $file" EXIT
cat > "$file"
open "$file"
sleep 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment