本帖最后由 WHY 于 2019-1-12 19:46 编辑
- @echo off
- for /f "tokens=3" %%i in ('sed -n "/ROTOT.*ROTORMASS/{n;p;n;n;n;p}" a.txt') do (
- for /f %%j in ('mshta "javaScript:new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).Write(4*65*%%i/15);close()"') do echo;%%j
- )
- pause
复制代码
- gawk "{if(a){++n; if(n==1||n==4)printf \"%%0.6f\n\",4*6500*$3/1500}}; /ROTOT.*ROTORMASS/{a=1}" a.txt
复制代码
- PowerShell "type a.txt|select-String 'ROTOT.*ROTORMASS' -Context 4|%%{$_.Context.PostContext[0,3]|%%{4*6500*($_.trim() -split '\s+')[2]/1500}}"
复制代码
|