摘要:
>/tmp/check.txtfor file in `ls *.py`do awk -F "(" '{ if ($0 ~ /^def/) { print $0 }}' $file >> /tmp/check.txtdonepython <<!f = file("/tmp/check.txt", "r")lines = f.readlines()unique=set(lines)if len(lines) != len(unique): for n in unique: lines.rem 阅读全文