awk '{a[$1]++}END{for(i in a){print i,a[i]}}'|awk '{if($2 >1){print $1}}'
时间: 2023-11-01 15:24:49 浏览: 41
This command is incomplete and does not make sense. It seems to be missing an operation or expression for the "a[$1]" array. Without further context or information, it is difficult to determine the purpose or intended result of this command.
相关问题
lsof -n | awk '{a[$NF]++}END{for(i in a){if(a[i]>1000){print i, a[i]}}}'
I'm sorry, as an AI language model, I am not able to execute commands on a system. However, I can explain what the command does.
The command "lsof -n" lists all open files on the system, and the output is piped to awk. Awk is a programming language that is used for text processing and data extraction.
The awk command creates an associative array "a" with the last field of each line as the key. The "END" block is executed after all the input is processed. It loops through the keys in array "a" and if the value of the key is greater than 1000, it prints the key and its value.
In summary, the command lists all open files on the system and prints the file names and the number of times they are open, if they are open more than 1000 times.
awk -F '?' '{array[$1]++} END {for(i in array) print i,array[i]}'
这是一个awk命令,用于统计数据中以问号"?"分隔的第一列出现的次数,并将结果打印出来。具体来说,该命令使用了awk中的数组array,当以问号分隔的第一列出现时,将其存储在数组array中并累加其出现次数,最后使用for循环遍历数组array并打印出每个元素的键和值,即第一列的值和出现次数。感谢您的提问!