Created
January 10, 2022 00:38
-
-
Save daerich/515b6de52c8e5fa12ef7c37bdec10d80 to your computer and use it in GitHub Desktop.
replace incorrect temp degree values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
ARGF.each {|line| | |
if line =~ /,[[:digit:]]{2,2}/ | |
puts $` + ",#{$&[1,2].to_i - 10}" + $' | |
else | |
puts line | |
end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment