#!/bin/bash awk -F\| "\$2 == 0 { print \$1 }" < ~/play-music-collection-db.txt | \ awk -F/ ' { print $1 }' | \ histogram | \ sort -k 2 | \ sort -nr --stable