wh123wh123 当前离线
六级士官
WHY 当前离线
上校
@echo off for /f "tokens=1,2*delims=|" %%i in (a.txt) do ( echo;%%i^|%%j^|3^|%%k ) pause复制代码
TOP
PowerShell "$a=(gc a.txt -ReadCount 0) -replace '^(?:[^|]*\|){2}', '$&3|'; sc b.txt $a"复制代码
sed -r "s/^([^|]*\|){2}/&3|/" a.txt > b.txt复制代码
gawk "BEGIN{FS=OFS=\"^|\"}{$2=$2\"^|3\"}1" a.txt > b.txt复制代码