bensie (owner)

Revisions

gist: 174070 Download_button fork
public
Public Clone URL: git://gist.github.com/174070.git
Embed All Files: show embed
hex_replace.rb #
1
2
3
4
5
6
7
File.open('osi.txt') do |file|
  File.open('output.txt', 'w') do |out|
    while line = file.gets
      out.write line.to_s.sub("2b".hex.chr + "1b".hex.chr, "1b".hex.chr)
    end
  end
end