-- Leo's gemini proxy
-- Connecting to gemini.mingmengtou.org:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini;lang=en-GB
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!
---
---
neil.gemini@mingmengtou.org
content licensed CC-BY-SA 4.0 unless stated.
-- Response ended
-- Page fetched on Thu May 2 11:09:18 2024