Linux shell simultaneous statistical key

each line of the text file record.json is a json, and the four fields of each json, K1Mus4, together represent a key key, that asks for the number of times this key occurs, and the number of keys that are not repeated.
try the idea is K1-4 splice key, to find the number of times and do not repeat the number of times, but do not know how to concatenate.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e40b51-4cc74.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e40b51-4cc74.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?