urfile:
a16465:dfdffddf:5696:400::/home/a16465:/usr/bin/sh
b16436:*:5697:400::/home/b16436:/usr/bin/sh
v18261:*:5698:400::/home/v18261:/usr/bin/sh
n18631:fdfadfdf:5699:400::/home/n18631:/usr/bin/sh
v76292:*:5700:400::/home/v76292:/usr/bin/sh
m16304:*:5701:400::/home/m16304:/usr/bin/sh
awk -F':' '$2!="*"' urfile
awk -F':' '$2!~"*"' urfile
awk -F':' '$2!~/\*/' urfile
awk -F':' '{if($2!="*")print $0}' urfile
awk -F':' '{if($2!~"*")print $0}' urfile
awk -F':' '{if($2!~/\*/)print $0}' urfile
阅读(604) | 评论(1) | 转发(0) |