Created
June 15, 2011 15:13
-
-
Save tmhedberg/1027307 to your computer and use it in GitHub Desktop.
Shell function to pipe text to a program which does not read from stdin
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
fpipe () { | |
local tmpfile=`mktemp` | |
cat >$tmpfile | |
$@ $tmpfile | |
rm $tmpfile | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment