G2 Tim版 刷root权限
获得某进程的PID and kill it.

通过播放列表复制音乐文件...

TLHL28 posted @ Sat, 12 Dec 2009 23:29:31 +0800 in 随笔 with tags shell , 1456 readers

今天想将banbee里的一自定义列表里到处音乐文件.....但在banbee没有找到这个功能,我没有发现!?

于是导出播放列表看看 .m3u格式的。。刚好是注释加路径

 

#EXTM3U
#EXTINF:253,南拳妈妈 - 下雨天
/home/tlhl28/music/current_listenling/下雨天.mp3
#EXTINF:153,bandari - GOOD NIGHT
/home/tlhl28/music/15.wma
#EXTINF:285,卢广仲 - 我爱你
/home/tlhl28/music/current_listenling/我爱你.mp3
#EXTINF:236,卢广仲 - 早安,晨之美
/home/tlhl28/music/current_listenling/早安晨之美.mp3
#EXTINF:258,Jason Mraz - I'm Yours
/home/tlhl28/music/current_listenling/jason mraz - i'
m yours.mp3
#EXTINF:243,Linkin Park - QWERTY
/home/tlhl28/music/current_listenling/Linkin Park-Qwerty(live).mp3
#EXTINF:761,Linkin Park - Part Of Me
/home/tlhl28/music/current_listenling/Part Of Me.mp3
#EXTINF:204,Lydia - Tommai mai rub sak tee [Special]
/home/tlhl28/music/current_listenling/tommai mai rub sak tee.Lydia Ninteen.mp3
#EXTINF:265,Unknown Artist - 自由
/home/tlhl28/music/current_listenling/自由.mp3
#EXTINF:220,Unknown Artist - 范逸臣 - 国境之南
/home/tlhl28/music/current_listenling/范逸臣 - 国境之南.mp3
#EXTINF:62,Unknown Artist - Rock'n rollµÄstyle banner_02
/home/tlhl28/music/current_listenling/Rock & Roll的Style.mp3
#EXTINF:292,·½¾¼ïÙ - Äã²»±Ø°®ÎÒ
/home/tlhl28/music/current_listenling/你不必爱我.mp3
#EXTINF:567,¿áÖíÒôÀÖ[kupig.cn] - ¿áÖíÒôÀÖ[kupig.cn]
/home/tlhl28/music/current_listenling/World Filled with Love.mp3
#EXTINF:165,苏打绿 - 日光
/home/tlhl28/music/current_listenling/苏打绿_日光.mp3
#EXTINF:270,Linkin Park - New Divide
/home/tlhl28/music/current_listenling/Linkin Park-New Divide.mp3
#EXTINF:227,Linkin Park - Numb [Live At Milton Keynes]
/home/tlhl28/music/current_listenling/Numb [Live At Milton Keynes].mp3
#EXTINF:231,Linkin Park - In The End [Live At Milton Keynes]
/home/tlhl28/music/current_listenling/In The End [Live At Milton Keynes].mp3
#EXTINF:201,Linkin Park - Qwerty (Studio Version)
/home/tlhl28/music/current_listenling/Qwerty (Studio Version).mp3
#EXTINF:330,ÁÖ嶼Π- ÉñÃؼαö
/home/tlhl28/music/current_listenling/神秘嘉宾.mp3
#EXTINF:291,郭采洁 - 又园了的月亮
/home/tlhl28/music/郭采洁/°®ÒìÏë/00. 又园了的月亮.mp3
#EXTINF:264,郭采洁 - 你在,不在
/home/tlhl28/music/郭采洁/°®ÒìÏë/00. 你在,不在.mp3
#EXTINF:302,ÎåÔÂÌì - Ö¾Ã÷Óë´º½¿
/home/tlhl28/music/current_listenling/五月天-志明与春娇.mp3

 

 

呃....有乱码..赶着回家,下次再弄这个乱码问题....

应该可以用简单的脚本导出来。

不过有空格呢.....在文件里加 "\" 处理。还是不行。上网找解决方法了,还是依赖google搜索....有空在自己思索思索,没基础嘛~

以下命令解决....简单...

 

cat likes.m3u | while read line; do cp "$line" mus/; done

 

 


Login *


loading captcha image...
(type the code from the image)
or Ctrl+Enter