本帖最后由 qixiaobin0715 于 2024-4-24 17:07 编辑
- @echo off
- setlocal enabledelayedexpansion
- (for /f "delims=" %%i in ('findstr /l /c:"/yuzu-emu-mirror/yuzu-mainline/releases/tag" /l /c:"<relative-time datetime=" /l /c:"yuzu-emu-mirror/yuzu-mainline/commit" source_code.txt') do (
- set "str1=%%i"
- set "str1=!str1:>=!"
- for %%j in (!str1!) do (
- if "!s!"=="href" (
- if not defined n (
- set "str=%%~j"
- set n=true
- ) else (
- echo,!str!%%~j
- set n=
- )
- ) else if "!s!"=="datetime" (
- set "str=!str!<relative-time datetime=%%~j"
- )
- set s=%%j
- )
- ))>out.txt
- pause
复制代码
|