比如我有一段文本:
小众软件于 2005 年成立,距今已经过去了 19 年。
我想要将其中的过去了 19 年
替换为过去了 20 年
过去了 21 年
等,并把所有每个替换结果保存下来。
最终结果:
小众软件于 2005 年成立,距今已经过去了 19 年。
小众软件于 2005 年成立,距今已经过去了 20 年。
小众软件于 2005 年成立,距今已经过去了 21 年。
小众软件于 2005 年成立,距今已经过去了 22 年。
当然,数字的起止范围需要自定义。
"C:\Program Files\MKVToolNix\mkvmerge.exe" --ui-language zh_CN --priority lower --output ^"C:\Users\Kawa\Videos\电视剧\相合之物\S01\相合之物.S01E01.mkv^" --language 0:und --display-dimensions 0:1920x1080 --language 1:ja --track-name ^"1:Main Audio^" ^"^(^" ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\相合之物.S01E01.mkv^" ^"^)^" --language 0:zh ^"^(^" ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\相合之物.S01E01.ass^" ^"^)^" --attachment-name FZZZHUNHK.TTF --attachment-mime-type font/ttf --attach-file ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\[Airota^&VCB-Studio] Deaimon [Fonts]\FZZZHUNHK.TTF^" --attachment-name FZLanTYK_Xi.TTF --attachment-mime-type font/ttf --attach-file ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\[Airota^&VCB-Studio] Deaimon [Fonts]\FZLanTYK_Xi.TTF^" --attachment-name FZLanTYK_Cu.TTF --attachment-mime-type font/ttf --attach-file ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\[Airota^&VCB-Studio] Deaimon [Fonts]\FZLanTYK_Cu.TTF^" --attachment-name A-OTF-KyokaICAPro-Medium.otf --attachment-mime-type font/otf --attach-file ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\[Airota^&VCB-Studio] Deaimon [Fonts]\A-OTF-KyokaICAPro-Medium.otf^" --attachment-name ^"方正楷体_GB18030.ttf^" --attachment-mime-type font/ttf --attach-file ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\[Airota^&VCB-Studio] Deaimon [Fonts]\方正楷体_GB18030.ttf^" --attachment-name ^"方正楷体_GBK.ttf^" --attachment-mime-type font/ttf --attach-file ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\[Airota^&VCB-Studio] Deaimon [Fonts]\方正楷体_GBK.ttf^" --attachment-name ^"DFSoGei-W5 ^& DFPSoGei-W5 ^& DFGSoGei-W5.ttc^" --attachment-mime-type font/collection --attach-file ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\[Airota^&VCB-Studio] Deaimon [Fonts]\DFSoGei-W5 ^& DFPSoGei-W5 ^& DFGSoGei-W5.ttc^" --attachment-name ^"方正韵动中黑_GBK.ttf^" --attachment-mime-type font/ttf --attach-file ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\[Airota^&VCB-Studio] Deaimon [Fonts]\方正韵动中黑_GBK.ttf^" --attachment-name FZBIAOYSK.TTF --attachment-mime-type font/ttf --attach-file ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\[Airota^&VCB-Studio] Deaimon [Fonts]\FZBIAOYSK.TTF^" --attachment-name FZLanTYK_0.TTF --attachment-mime-type font/ttf --attach-file ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\[Airota^&VCB-Studio] Deaimon [Fonts]\FZLanTYK_0.TTF^" --attachment-name FZFWQingYinTiJWD.TTF --attachment-mime-type font/ttf --attach-file ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\[Airota^&VCB-Studio] Deaimon [Fonts]\FZFWQingYinTiJWD.TTF^" --attachment-name ARDCQingYuanB5-BD.otf --attachment-mime-type font/otf --attach-file ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\[Airota^&VCB-Studio] Deaimon [Fonts]\ARDCQingYuanB5-BD.otf^" --attachment-name FZXKK.TTF --attachment-mime-type font/ttf --attach-file ^"C:\Users\Kawa\Downloads\[Airota^&VCB-Studio] Deaimon [Ma10p_1080p]\[Airota^&VCB-Studio] Deaimon [Fonts]\FZXKK.TTF^" --track-order 0:0,0:1,1:0
这是我实际想要处理的文本内容,是个 CMD 命令。
我的目的是把相合之物.S01E01
从第一集替换到最后一集,然后去执行这些命令。
手动替换实在是过于麻烦。