“`” 答案:
awk '{pattern + action}' {
filenames
}
#cat /etc/passwd |awk -F ':' '{print 1""t""7}' //-F 的意思是以':'分隔 root
/bin/bash
daemon /bin/sh 搜索/etc/passwd 有 root 关键字的所有行
#awk -F: '/root/' /etc/passwd root❌0:0:root:/root:/bin/bash
<pre><code> "“`
Was this helpful?
0 /
0