fmang / opustags

Ogg Opus tags editor
BSD 3-Clause "New" or "Revised" License
75 stars 10 forks source link

Thanks! How display tags in a file (not edit)? #52

Closed clort81 closed 3 years ago

clort81 commented 3 years ago

Looking for a way to extract 'Album' and add this to beginning of filename.

Cheers!

fmang commented 3 years ago

opustags does not have an option to extract a specific tag but a quick sed should do the trick:

# assuming $f is your filename
mv -nv "$f" "$(opustags "$f" | sed -ne s/^ALBUM=//p) - $f"