• + 0 comments

    while read line; do echo $line >> file.txt done cat file.txt | uniq -c | sed -E 's/^(.{0,7})[ ]+/\1 /;s/ {2,}//'