user299563
user299563

Reputation: 19

awk in linux and windows behaves differently

I am correcting the boundary box of a test.eps file produced with gnuplot with the following awk shell command within a gnuplot program:

! 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

Under linux this works perfectly well. If I now run exactly the same command under windows using the gnuwin command awk it does not work, but produces an empty file 1.txt and correspondingly also an empty test.eps What goes wrong?

Upvotes: 0

Views: 166

Answers (0)

Related Questions