Skip to content

Commit 9d21576

Browse files
author
lutaoact
committed
awk '/WAIT/' netstat.txt
1 parent 3999290 commit 9d21576

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awk_use.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ awk '{printf "%-8s %-8s %-8s %-18s %-22s %-15s\n",$1,$2,$3,$4,$5,$6}' netstat.tx
33
awk '$3 == 0 && $6 == "LAST_ACK"' netstat.txt
44
awk '$3 > 0 && NR != 1 {print $3}' netstat.txt
55
awk 'BEGIN{FS=":"} {print $1,$3,$6}' semi_colon_FS #awk -F: '{print $1,$3,$6}' semi_colon_FS
6-
6+
awk '/WAIT/' netstat.txt
77

88
# awk内建变量
99
# $0 当前记录(这个变量中存放着整个行的内容)

0 commit comments

Comments
 (0)