Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (7 sloc) 244 Bytes
#!/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