Closed GoogleCodeExporter closed 8 years ago
最简单的方法是批量改名。
改成
4-3-17-37077.wav
如果你会任何脚本,可以很方便写出来。
大概这样写:
for f in "./*/*/*.wav"; do new_name==$(echo $f|sed -rn
's/([0-9]+)\/([0-9]+)\/([0-9]+)/\1-\2-\3/p'); mv "$f" "$new_name"
然后再对文本文件处理,用sed
sed -i
"s/file:\/\/\/d:\/media\/slang\/elements\/([0-9]+)\/([0-9]+)\/([0-9])+\/([0-9]+.
wav)/\1-\2-\3/g" example.txt
大概就可以了。
Original comment by mrlhwlib...@gmail.com
on 9 Apr 2012 at 3:06
Original comment by mrlhwlib...@gmail.com
on 9 Apr 2012 at 4:52
Original comment by mrlhwlib...@gmail.com
on 23 Apr 2012 at 3:41
Original issue reported on code.google.com by
Joshuap...@gmail.com
on 3 Apr 2012 at 4:57