Advertisement
gronke

Untitled

Feb 18th, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. import os,sys
  2. args = sys.argv[1:]
  3.  
  4. f1 = str(args[0])
  5. f2 = str(args[1])
  6.  
  7. myfile = '/gpfs_common/mobyle_share/data/'+f1+'/inputfile1.data'
  8.  
  9. f = open(myfile, 'r')
  10.  
  11. content = []
  12.  
  13. for line in f:
  14.     line = line.replace('\n','')
  15.     content.append(line)
  16.  
  17. f.close()
  18.  
  19. for row in content:
  20.     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