Skip to content

Instantly share code, notes, and snippets.

@colemanm
Created June 11, 2015 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colemanm/d442ff2c945aeae015bc to your computer and use it in GitHub Desktop.
Save colemanm/d442ff2c945aeae015bc to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
list = File.read(ARGV[0])
dir = ARGV[1]
list.each_line do |file|
file.chomp!
# puts "cp #{file}.jpg #{dir}"
`cp #{file}.jpg #{dir}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment