Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

9 lines (7 sloc) 0.244 kb
#!/usr/bin/env ruby
# Usage: munge SYMBOL FILE
# Super simple file munger. Reads stdin and replaces SYMBOL with the
# contents of FILE before writing it to stdout.
data = STDIN.read
data.gsub!(ARGV[0]) { File.read(ARGV[1]) }
STDOUT.write data
Jump to Line
Something went wrong with that request. Please try again.