start Ruby/CHISE
[chise/ruby.git] / tools / trim_bom.rb
1 #!/usr/bin/env ruby
2 # remove BOM at the begining of the file by eto 2002-1203
3 STDOUT.binmode
4 while gets
5   if /^\M-o\M-;\M-?/
6     $_.sub!(/^\M-o\M-;\M-?/, '')
7   end
8   print $_
9 end