<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:#000000"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 21, 2015 at 8:57 AM, Will Godfrey <span dir="ltr"><<a href="mailto:willgodfrey@musically.me.uk" target="_blank">willgodfrey@musically.me.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sun, 20 Sep 2015 14:03:41 +0200<br>
Lorenzo Sutton <<a href="mailto:lorenzofsutton@gmail.com">lorenzofsutton@gmail.com</a>> wrote:<br>
<br>
> On 19/09/15 23:12, Will J Godfrey wrote:<br>
> > Once again, thanks everyone<br>
> ><br>
> > As it was only uncompressed files I was looking at 'file' turned out to be the<br>
> > simplest and fastest. I simply redirected the output to create a text file, then<br>
> > picked it up with kwrite.<br>
><br>
> I think soxi (part of sox) should also have been mentioned... then you<br>
> could quickly hack something like this:<br>
><br>
> for f in *.wav<br>
> do<br>
>      SR=$(soxi -r "$f")<br>
>      BITS=$(soxi -b "$f")<br>
>      printf "%-20s %s bits, %s Hz\n" "$f" "$BITS" "$SR"<br>
> done<br>
><br>
> Sample output:<br>
><br>
> agogo_h.wav          16 bits, 44100 Hz<br>
> agogo_lo.wav         16 bits, 44100 Hz<br>
> bell_tree.wav        16 bits, 44100 Hz<br>
> ...<br>
<br>
While I very much appreciate these suggestion. It was a one-off situation which<br>
required (shamefully) little knowledge to complete. Were I to do something like<br>
this on a regular basis then I would indeed dive into these more refined<br>
solutions.<br>
<span class="HOEnZb"><font color="#888888"><br>
--</font></span><br></blockquote></div><br><div class="gmail_default" style="font-family:georgia,serif;font-size:small;color:rgb(0,0,0)">​Isn't it amazing how many ways there are to do just about anything in Linux!!!!​</div><br clear="all"><br>-- <br><div class="gmail_signature">**** Listen to my FREE CD at <a href="http://www.mellowood.ca/music/cedars" target="_blank">http://www.mellowood.ca/music/cedars</a> ****<br>Bob van der Poel ** Wynndel, British Columbia, CANADA **<br>EMAIL: <a href="mailto:bob@mellowood.ca" target="_blank">bob@mellowood.ca</a><br>WWW:   <a href="http://www.mellowood.ca" target="_blank">http://www.mellowood.ca</a></div>
</div></div>