Skip to content

Instantly share code, notes, and snippets.

@b0n
Created June 3, 2014 13:05
Show Gist options
  • Save b0n/3b9c0dd188a4799b2af8 to your computer and use it in GitHub Desktop.
Save b0n/3b9c0dd188a4799b2af8 to your computer and use it in GitHub Desktop.
#!/opt/local/bin/python2.7
import os
import shutil
f = open('cp.sh', 'r')
for line in f:
f = line.rstrip("\n")
d = "2014060302/" + os.path.dirname(line)
print f
#print d
shutil.copy(f, d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment