Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- import sys
- with open(sys.argv[1], 'rb') as f:
- with open(sys.argv[2], 'wb') as w1:
- with open(sys.argv[3], 'wb') as w2:
- data = f.read(22)
- while data:
- w1.write(data + b'\n')
- w2.write(data)
- data = f.read(22)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement