projects
/
chise
/
ruby.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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