Created
March 7, 2011 21:54
-
-
Save cwarden/859347 to your computer and use it in GitHub Desktop.
Show stdin in a web browser
This file contains 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/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