Bash Script - Get song artist from command line

bash, shell

Solution

You can try `exiftool`, it's very easy to use:

$ exiftool -Title -Artist -Album -Duration  ScarboroughFair.mp3
Title                           : Scarborough Fair
Artist                          : 莎拉 布莱曼
Album                           : 月光女神
Duration                        : 0:04:11 (approx)

Problem

Is there a bash command/program that can get information about a song from the command line? I want to get things like album, artist, length, etc. Format is .mp3

Original source