[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] wierd scripting problem
- Subject: [ale] wierd scripting problem
- From: geof at denali.abraxis.com (Geoffrey Myers)
- Date: Tue, 19 Nov 1996 16:08:17 -0500 (EST)
}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.....