wangdao6699 当前离线
一级士官
TOP
慕夜蓝化 当前离线
四级士官
@echo off setlocal enabledelayedexpansion for /f "delims=" %%i in (新建文本文档.txt) do ( set "str=%%i" for %%a in ("!str:|=" "!") do echo,%%~a ) pause复制代码
评分人数
pcl_test 当前离线
荣誉版主
chromatin2 当前离线
列兵
@if (0)==(0) echo off cscript -nologo -e:jscript %~s0 pause & exit @end var str="69|8569|986|456|678|6898" WScript.Echo(str.replace(/\|/g,"\n"))复制代码
bailong360 (zhonghua)当前离线
上尉
@gawk -F "|" "for(i=1;i<=NF;i++) print $i>$New.txt" file.txt 复制代码
@grep -oP "\d+" file.txt>$New.txt复制代码
echo '69|8569|986|456|678|6898' | %{Write-Host $_.Replace("|","`n")}复制代码
'&cls&@echo off&cscript -nologo -e:vbscript %~fs0 & pause & exit /b str="69|8569|986|456|678|6898" WScript.echo replace(str,"|",chr(10))复制代码