Skip to content

Instantly share code, notes, and snippets.

@tmhedberg
Created June 15, 2011 15:13
Show Gist options
  • Save tmhedberg/1027307 to your computer and use it in GitHub Desktop.
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
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