Sha256: 30ace2c0f0e93acefe70a20d60d9995f37eaa0cf4121c0db3ca7caee38eefd8f
Contents?: true
Size: 394 Bytes
Versions: 21
Compression:
Stored size: 394 Bytes
Contents
#! /usr/bin/env ruby if ARGV.size != 3 puts "Usage: anonymizer.rb message_file phone_number email_address" exit(1) end message_file = ARGV[0] phone_number = ARGV[1] email_address = ARGV[2] message = File.read(message_file) message.gsub!(phone_number, '2068675309') message.gsub!(email_address, 'tommy.tutone@example.com') out = File.open(message_file, "w") out.puts message out.close
Version data entries
21 entries across 21 versions & 2 rubygems