Created
September 24, 2014 10:47
-
-
Save syui/c2ed92250aa54b276410 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dir=$HOME/Music | |
cha=`cat $dir/info.txt | grep FILE | tail -n 1 | cut -d '/' -f 6` | |
# cha=`cat $dir/info.txt | grep FILE | tail -n 1 | xargs basename` | |
sum=`echo $cha | wc -c | tr -d ' '` | |
for (( i = 1; i < $sum; i=`expr $i + 4` )) | |
do | |
a=`expr $i + 4` | |
b=$i"-"$a | |
cat $dir/info.txt | grep FILE | tail -n 1 | cut -d '/' -f 6 | cut -b $b | |
# cat $dir/info.txt | grep FILE | tail -n 1 | xargs basename | cut -b $b` | |
sleep 0.3 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment