Skip to content

Instantly share code, notes, and snippets.

@wuputah
Created October 7, 2008 20:58
Show Gist options
  • Save wuputah/15387 to your computer and use it in GitHub Desktop.
Save wuputah/15387 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
`find /var/www/vhosts/santosdumont.com/web_users/ -type f`.split("\n").each do |file|
basename = File.basename(file)
system("mv", file, "/var/www/vhosts/santosdumont.com/httpdocs/Resource/" + basename)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment