:note

はじめてのglitch

はじめての glitch

# -*- coding:  utf-8 -*-
source = ARGV.first
w = %w(a b c d e f g h i j k l)
10.times do |i|
  `cat #{source} | sed 's/\s/#{i}/g' > #{source.sub(/\./,"0#{i}.")}`
  `cat #{source} | sed 's/\d/#{i}/g' > #{source.sub(/\./,"1#{i}.")}`
  `cat #{source} | sed 's/[a-z]/#{i}/g' > #{source.sub(/\./,"2#{i}.")}`
  `cat #{source} | sed 's/\w/#{i}/g' > #{source.sub(/\./,"3#{i}.")}`
  `cat #{source} | sed 's/#{i}/w[#{i}]/g' > #{source.sub(/\./,"4#{i}.")}`
end

png

jpg

 
comments powered by Disqus
back to top