A usage example of the shell dictionary

1. shell in the dictionary usage examples, arrays use the same dictionary

  

2. Use sell more with the function dictionary to use awk can easily get to, the following:

  awk '{print $ 2}' file.txt | sort | uniq -c # -c indicates the number of statistics for each unique character

Guess you like

Origin www.cnblogs.com/quzq/p/12074874.html