Created
April 1, 2016 11:04
-
-
Save igaiga/2066060976493cbe127d1988db37362e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# style= が入ってるファイルを探す。ただしstyle="fill:none"は除く。 | |
paths = Dir.glob("**/*") | |
paths.each do |path| | |
File.open(path, "r") do |f| | |
str = f.read | |
str.gsub!(/style="fill:none"/, '') | |
puts path if str =~ /style=/ | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment