Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os,sys
- args = sys.argv[1:]
- f1 = str(args[0])
- f2 = str(args[1])
- myfile = '/gpfs_common/mobyle_share/data/'+f1+'/inputfile1.data'
- f = open(myfile, 'r')
- content = []
- for line in f:
- line = line.replace('\n','')
- content.append(line)
- f.close()
- for row in content:
- os.system('mv /gpfs_common/mobyle_share/data/'+f1+'/'+row+'.sam /gpfs_common/mobyle_share/data/'+f2+'/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement