本帖最后由 pcl_test 于 2016-9-11 21:57 编辑
路过- powershell -c "(gc 'test.txt'|%%{$_.split()[0]+' 15'})|Out-File 'test.txt'"&pause
复制代码 第三方- sed -i -r "s/\S+$/15/" "test.txt"&pause
复制代码
- gawk "{s=s\"\"$1\" 15\n\"}END{printf s>\"test.txt\"}" "test.txt"&pause
复制代码
|