现有一可执行文件Qsed.exe和文本文件Qsedlist内容:- qvod://340102707|F067D1817B9D47B77B34AC307BD632173C7DC39B|钱多多嫁人记_01-HDTV无水印.rmvb|
- qvod://242026324|831FFD9E706292A883259BC2D10AE23FA3E41858|\u671D\u6BD4\u5948\u308B\u3044(\u4E2D\u6587\u5B57\u5E55)_钱多多嫁人记_02-HDTV无水印.mkv|
复制代码 通过shell脚本:- #!/bin/sh
-
- awk -F"|" '{print $2}' Qsedlist | sed 's/^/Qsed.rmvb_/g' | while read t;do cp Qsed.exe $t.exe;done
复制代码 能获得:- Qsed.rmvb_F067D1817B9D47B77B34AC307BD632173C7DC39B.exe
- Qsed.rmvb_831FFD9E706292A883259BC2D10AE23FA3E41858.exe
复制代码 现在想获得的文件名为:- 钱多多嫁人记_01-HDTV无水印.rmvb_F067D1817B9D47B77B34AC307BD632173C7DC39B.exe
- 钱多多嫁人记_02-HDTV无水印.mkv_831FFD9E706292A883259BC2D10AE23FA3E41858.exe
复制代码 求大牛修改,谢谢!! |