嗨 Rikard,
我也不经常流媒体播放,主要是因为它耗电更快。
这是我的 bash 脚本版本
# 配置部分procFilesCopy=50;from=/path/to/my/music/collection;to=/path/to/phone/mount;
# 执行部分fileCount=$(ls $from | wc -l);copyCount=$(($fileCount * $procFilesCopy / 100));ls $from | shuf -n $copyCount | while read f; do cp $from/$f $to; done
嗨 Rikard,
我也不经常流媒体播放,主要是因为它耗电更快。
这是我的 bash 脚本版本
# 配置部分
procFilesCopy=50;
from=/path/to/my/music/collection;
to=/path/to/phone/mount;
# 执行部分
fileCount=$(ls $from | wc -l);
copyCount=$(($fileCount * $procFilesCopy / 100));
ls $from | shuf -n $copyCount | while read f; do cp $from/$f $to; done