• + 0 comments

    Two ways using uniq,tr, cut command

    uniq -c | tr -s '[:space:]' | cut -d ' ' -f2-
    

    uniq -c | cut -c 7-