Skip to content

Instantly share code, notes, and snippets.

@ybenjo
Created March 14, 2011 14:03
Show Gist options
  • Save ybenjo/869159 to your computer and use it in GitHub Desktop.
Save ybenjo/869159 to your computer and use it in GitHub Desktop.
aaa
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