import sys
# Usage:
# python lut.py
#
#
lut= dict([f.strip().split() for f in open(sys.argv[1],'r').readlines()])
lines=[l.strip().split() for l in open(sys.argv[2]).readlines()]
for l in lines:
print lut.get(l[0])
-->
Fixes and hacks for bash, sed, awk, python, perl, makefile, ...
No comments:
Post a Comment