[Solved] search value and count number from log file


I would do something like this:

cat log | grep -o "number\=[0-9]\+" | cut -d= -f2 | sort | uniq -c

The output for your example is:

7 1193046
6 466000000

5

solved search value and count number from log file