2018-02-20 mp3_bitrate

less than 1 minute read

Mp3

i wanted to find the bitrate on a file in the terminal and i found this bashrc function…

bitrate () { echo `basename "$1"`: `file "$1" | sed 's/.*, \(.*\)kbps.*/\1/' | tr -d " " ` kbps }

Updated: