Skip to content

Instantly share code, notes, and snippets.

@syui
Created September 24, 2014 10:47
Show Gist options
  • Save syui/ca06393938672224e703 to your computer and use it in GitHub Desktop.
Save syui/ca06393938672224e703 to your computer and use it in GitHub Desktop.
#!/bin/bash
sea="ID_FILENAME"
dir1=$HOME/Music
rm -rf $dir1/*/.DS_Store >/dev/null 2>&1
dir2="$dir1/"`zsh -c "ls -A $dir1 | peco"`
pla=`mplayer -novideo -speed 2 -af scaletempo,volnorm -loop 20 -quiet -msglevel all=0 -identify $dir2/* > $dir1/info.txt`
#cat $dir1/info.txt | grep FILE | tail -n 1 | xargs basename | cut -b 1-6
rm $dir1/info.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment