egrep '^.{11}(WP)' inputfile | sort -k1.17,1.24 > outputfile WP 在12位开始. 转载于:https://www.cnblogs.com/kakaisgood/p/7700534.html