Skip to content

Instantly share code, notes, and snippets.

@cwarden
Created March 7, 2011 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cwarden/859347 to your computer and use it in GitHub Desktop.
Save cwarden/859347 to your computer and use it in GitHub Desktop.
Show stdin in a web browser
#!/bin/sh
# read from stdin, write to a temp file, open the temp file in a browser, then delete it
tmpfile=$(tempfile); cat > $tmpfile; x-www-browser $tmpfile; rm $tmpfile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment