laboo 当前离线
列兵
评分人数
apang 当前离线
上将
@echo off&setlocal enabledelayedexpansion for /f "delims=" %%a in (test.txt) do ( set "str=%%a" set "str=!str:~,3! !str:~3!" echo !str! ) pause复制代码
TOP
find 当前离线
少将
sed "s/^.../& /g" a.txt >b.txt复制代码
gawk "{print gensub(/(...)/,\"\\1 \",1)}" a.txt >b.txt复制代码
apang 发表于 2012-3-6 08:54