I have a file (test.csv) containing the following lines:2016-08-23 00:00:00,2701131841036814742016-08-23 00:00:00,2701131841016893402016-08-23 00:00:00,2701131841036814742016-08-23 00:00:00,2701131841016893402016-08-23 01:00:00,2701131841036814742016-08-23 01:00:00,270113184101689340I would like to get the total number of lines and the unique occurrences of the 2nd column for each of the 1st columns.  The desired output for the above lines would be:2016-08-23 00:00:00, 4, 22016-08-23 01:00:00, 2, 2Is there a simple grep/awk solution for this?
How to get total number of lines and unique counts on the same line
awk;grep