17 几种方法。负面思考: sed '/[a-z]/!d' # !x runs x if the pattern doesn't match grep -v '[a-z]' # -v means print if the regexp doesn't match awk '!/[a-z]/' # !expr negates expr — 怪兽龙 source