本帖最后由 WHY 于 2017-3-28 16:55 编辑
gawk "$0~/.+$/{s=\" \";len=17-length($0);for(i=1;i<len;i++)s=s\" \";$0=$0s\"00 sush\"};1" a.txt > b.txtCOPY
| set "s=[IO.File]::ReadAllText('a.txt', [Text.Encoding]::Default)" | | PowerShell -c "[regex]::Replace(%s%, '[^\r\n]+', {param($m); $s=$m.Value; $s+' '*(17-$s.Length)+'00 sush'})" > b.txtCOPY |
| @if(0)==(0) echo off | | cscript | | pause & goto :EOF | | @end | | | | var sp = ' '; | | var s = WSH.StdIn.ReadAll().replace(/[^\r\n]+/g,function(s0){return (s0 + sp).substr(0, 17) + '00 sush'}) | | WSH.Echo(s)COPY |
|