4 ms·
In some ways it's more of a system admin/ops task than a 'programmer' one. #!/usr/bin/python import sys with open(sys.argv[1]) as f: for l,
by deckiedan 13y ago
In some ways it's more of a system admin/ops task than a 'programmer' one.
#!/usr/bin/python
import sys
with open(sys.argv[1]) as f:
for l, i in enumerate(f):
print l * int(i)
We keep MD5 file lists of all files we archive to tape before we delete them. Today one of our editors found some footage, and we needed to know if those files had been archived already. It was a couple lines of bash, and then a 10 line python script.
I can write this kind of thing with my eyes shut.
You need problems like this, but also big architectural ones to really get an idea where someone is at.