Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Created September 25, 2014 20:23
Show Gist options
  • Save lukaszkorecki/2507f4abdda85b7e5ae2 to your computer and use it in GitHub Desktop.
Save lukaszkorecki/2507f4abdda85b7e5ae2 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
SIFS="$IFS"
IFS=$(echo -ne "\n\b")
loc="$1"
for f in $loc/*.wav ; do
if file $f | grep -q '24 bit' ; then
echo "$f is 24bit" >&2
echo $f | sed "s/ /\\\ /g"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment