Sha256: 405fc06f974a7e31bcf07159b07c03cffdbd5a1b60a6daa337096b95b16d65ad
Contents?: true
Size: 219 Bytes
Versions: 5
Compression:
Stored size: 219 Bytes
Contents
require 'fileutils' entries = Dir.entries('figs') entries.each{|file| sp=file.split('.') if sp[2]=='jpq' target=sp[0]+'.'+sp[1]+'.jpg' p command = "mv figs/#{file} figs/#{target}" system command end }
Version data entries
5 entries across 5 versions & 1 rubygems