0

我正在使用 gnuplot 程序中的以下 awk shell 命令更正使用 gnuplot 生成的 test.eps 文件的边界框:

! awk '{ if($1=="%%BoundingBox:"){left=$2-90; print left;  bottom=$3-69;   print   bottom; right=$4+8; print right; top=$5+5; print top; print $1, left, bottom, right, top >> "1.txt"}\
 else {print $0 >> "1.txt"} }' test.eps
! mv 1.txt test.eps

在linux下这工作得很好。如果我现在在 windows 下使用 gnuwin 命令 awk 运行完全相同的命令,它不起作用,但会产生一个空文件 1.txt 和相应的空 test.eps 出了什么问题?

4

0 回答 0