Skip to content

Instantly share code, notes, and snippets.

@mmakowski
Last active December 14, 2015 03:49
Show Gist options
  • Save mmakowski/5023961 to your computer and use it in GitHub Desktop.
Save mmakowski/5023961 to your computer and use it in GitHub Desktop.
#!/bin/bash
mediainfo "$1" | grep "Bit rate"
#!/bin/bash
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for dir in `ls -1`; do
pushd "$dir"
for file in `ls -1 *.mp3`; do
echo "converting $file"
lame --preset extreme "$file" "${file}.tmp"
rm -f "$file"
mv "${file}.tmp" "$file"
done
popd
done
IFS=$SAVEIFS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment