-
-
Save ybenjo/869159 to your computer and use it in GitHub Desktop.
aaa
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
cat f_1.csv|ruby -e '$<.each{|l|ary = l.chomp.split(",");3.upto(4){|i|ary[i]=0 if ary.include?("未満");if ary[i] != "-";ary[i]=ary[i].gsub(/[^0-9\.]/,"");end;};puts ary.join(",")}' | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment