Specific information about how the statistics appear in the file, and the count

For example, we will use grep sort uniq

Commands such as: grep -o -e '[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+' | sort | uniq -c

 grep -o is to output what matches, and as many matches as possible on each line

sort is used to sort, the main purpose is because the following uniq -c counts the number of consecutive lines of the same content. So you need to use sort to put the same ip arrangement into one piece

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326224942&siteId=291194637