liviu.vasut

发表的评论

嗨 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

© . All rights reserved.