uniq -c separate the occurrence number by spaces, which is hard for to
awk to separate it out later.
I can solve this problem using
sed -r 's/^ *([0-9]+)/\1\t/' to change the delimiter to tab. Then
cut -f1 could return:
But it seems a common usage to have
uniq -c separate the number by tab. Why is this feature missing? Is there any other easier way to do so?