From 8a42a419be5a062cb59bc19e536e4b3de826e7cb Mon Sep 17 00:00:00 2001 From: fighterhit Date: Mon, 30 Jul 2018 15:26:33 +0800 Subject: [PATCH] Update Linux.md --- notes/Linux.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/Linux.md b/notes/Linux.md index 6325e86e..8f27d75c 100644 --- a/notes/Linux.md +++ b/notes/Linux.md @@ -1078,7 +1078,7 @@ dmtsai pts/0 192.168.1.100 Thu Jul 9 17:23 - 23:36 (06:12) dmtsai pts/0 192.168.1.100 Thu Jul 9 08:02 - 08:17 (00:14) dmtsai tty1 Fri May 29 11:55 - 12:11 (00:15) -$ last -n 5 | awk '{print $1 "\t" $3} +$ last -n 5 | awk '{print $1 "\t" $3}' ``` 可以根据字段的某些条件进行匹配,例如匹配字段小于某个值的那一行数据。