[ale] wierd scripting problem

Geoffrey Myers geof at denali.abraxis.com
Tue Nov 19 16:08:17 EST 1996


}Geoffrey Myers wrote:
}> I assume it's a buffering issue, and I've been able to rid myself of
}> the problem by enclosing the for loop in parens, but this, to me is a
}> hack.  Any suggestions?
}Sounds to me like you have a ${fn} at the end of the awk(1) command
}line.  The actual script without the names changed to protect the guilty
}would help.

Hmmm, Upon further inspection you are relatively correct.  There is a $fn
at the end of the awk call, but it's supposed to be there.  Where I
screwed up is the awk script is inside a loop: "for fn in .....", what
I had done was added a small for loop inside the original, but used the
same variable name, such as:

for fn in ............; do

	for fn in .........; do
		do_stuff
	done

	awk ...............

done

An oversight on my part and a major no-no.  Thanks for pointing out the
obvious.

-- 
Until later:
Geoffrey Myers   geof at abraxis.com

	Opinions expressed by me are mine, all mine, only mine.....






More information about the Ale mailing list