
CODE: [Copy to clipboard],得到的 new_song.txt 就应该是你想要的。Gawk.exe -f Beyond.awk song.txt > new_song.txt
CODE: [Copy to clipboard]Gawk.exe 是个外部工具,在这里下载:http://www.cn-dos.net/forum/viewthread.php?tid=31098&page=1#pid205571BEGIN{
FS="[:,]"
}
{
the=$0;
if(NR>4){
if($0~/^[0-9][0-9]:[0-9][0-9]:.*/){
$3-=5;
if($3<0){
$2-=1;
if($2<0)$1-=1;
$3+=60;
}
printf("%02s:%02s:%02s,%s\n",$1,$2,$3,substr(the,10,length(the)-9));
} else print $0
} else print $0
}
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |