Copy files matching a regular expression to a new name
// copy similar files to a new name given a regular expression in ruby
for i in `ls *_1.png`; do echo $i; cp $i `echo $i|ruby -pe '$_.sub!(/_1/, "_0")'`; done