-
-
Save rchrd2/dc0ecbaeffaf75d253c3711985602d09 to your computer and use it in GitHub Desktop.
Show stdin in a web browser (for Mac OS X)
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/sh | |
# read from stdin, write to a temp file, open the temp file in a browser, then delete it | |
tmpfile=$(mktemp).html; cat > $tmpfile; open $tmpfile; #rm $tmpfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment