[ Last edited by heimoli on 2008-12-22 at 13:42 ]作者: pooronce 时间: 2008-12-22 15:05 请详细/清晰地描述你的问题作者: HAT 时间: 2008-12-22 15:36 标题: Re 3楼
这里不是Unix论坛,批处理室能看懂shell代码的人不是很多,如果你想让自己的问题得到尽快的解决,建议用通俗、易懂、详尽的中文来描述一边自己的问题。作者: heimoli 时间: 2008-12-22 15:43 其实我就是想说
如何写一段批处理程序在windows下执行这个gawk文件
我这有一程序,看不懂,应该是linux下的,但我现在想在windows中操作,最大的问题是,在这个批处理文件中如何定位具体文件夹(就是说如何找到gawk文件),还有就是如何定位待处理数据文件夹
set output_file=xa_result.txt
@echo on
echo 0.00,0.00,0.00 >>%output_file%
@echo off
set stat_file_perfix=xa_dymo_n1500_cbr150_
echo Please make sure analyse.gawk and *.stat file exist!!!
echo Start to analyse all the *.stat with %stat_file_perfix%..... .
pause
for /l %%i in (6,1,8) do call :calc %%i
goto :eof
:calc
set /a index=%1
set stat_file=%stat_file_perfix%%index%.stat
@gawk -f analyse.gawk %stat_file%
set progress=%index%;
@echo count of *.stat files processed: %progress%作者: HAT 时间: 2008-12-22 16:11 标题: Re 4楼