Skip to content

Instantly share code, notes, and snippets.

@meiamsome
meiamsome / taran.py
Created October 27, 2016 10:56
Formats Premier Shortcuts as per Taran's video
# Script to process file as per https://www.youtube.com/watch?v=gF-f25dRbo8
# Outputs to test.txt by default.
# Inputs as files on command line
import fileinput
if __name__ == "__main__":
output = 'test.txt'
with open(output, 'w') as f:
f.writelines(list(name + "&" + key.replace('+',' ') + "\n" for name, *keys in (line.strip().split('\t') for line in fileinput.input()) for key in keys))