wangdao6699 当前离线
一级士官
TOP
cobat 当前离线
三级士官
@echo off set "s=69|8569|986|......" echo,%s:|=&echo,% pause复制代码
@echo off&setlocal enabledelayedexpansion set "s=69|8569|986|......" echo,!s:^|=^ !&pause复制代码
评分人数
pcl_test 当前离线
荣誉版主
@echo off set str="69|8569|986|456|678|6898" for /l %%a in (1 1 6) do call :loop %%a %str% pause :loop for /f tokens^=%1^ delims^=^| %%i in (%2) do echo %%i goto :eof复制代码
@echo off set str="69|8569|986|456|678|6898" set "str=%str:|=,%" for %%i in (%str:~1,-1%) do echo %%i pause复制代码
DAIC 当前离线
中将
sed "s/|/\n/g" 1.txt > 2.txt复制代码