All pastes #252694 Raw Edit

Unnamed

public text v1 · immutable
#252694 ·published 2006-11-19 21:23 UTC
rendered paste body
#!/bin/bash
# script to display high bitrate files

for file in "`ls -R *.mp3`";
do
  # get bitrate
  rate=`id3info "$file" | grep Bitrate | sed -e 's/Bitrate\:\ //g' -e 's/KBps//g'`;
  # check we have a bitrate to work with or dont do the calculation
  if [ "$rate" != "" ] 
  then 
    if [ "$((rate > 128))" = 1 ]
    then
      echo $file
    fi 
  fi
done

    fi 
  fi
done