#! /bin/bash # script to display bitrates find -name '*mp3' | while read file; do # get bitrate rate=`id3info "$file" | grep Bitrate | sed -e 's/Bitrate\:\ //g' -e 's/KBps//g'`; # check we have a bitrate to work with or dont do the calculation if [ "$rate" != "" ] then if [ "$((rate > 128))" = 1 ] then echo "$file" fi fi done