💾 Archived View for gemini.mingmengtou.org › 2022-04-22-metaflac.gmi captured on 2022-04-28 at 17:33:53. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

neil in gemini space

metaflac - 2022-04-22

i want to separate my flac files by sample rate; metaflac does not pipe:-(

for dir in ~/Hi-Def-Rips/*; do pathstring="$dir/*.flac"; metaflac --show-sample-rate $pathstring >> flacaudit.txt; done;

almost certainly not the most elegant bash; but it works:-) presumes the dir structure that i use.

grep flacaudit.txt for a sample rate.

cat flacaudit.txt | grep 44100

sort by sample rate:

sort -k2 -t : flacaudit.txt

- -k2 sort on the second field.

- -t : use : as a field separator.

might be a more capable script yet - if i remember or have the time!

---

return to gemini.mingmengtou.org index page.

---

neil.gemini@mingmengtou.org

content licensed CC-BY-SA 4.0 unless stated.

creative commons licence.