[TriLUG] possible awk/grep question
Joseph Mack NA3T
jmack at wm7d.net
Tue Jan 22 10:01:18 EST 2008
On Tue, 22 Jan 2008, Paul McLanahan wrote:
> I haven't used "declare -x" to get a variable out of a script before.
> Are you trying to use this script to setup an environment?
I was trying to recover the variable into the body of the
script that contains the code we're discussing.
> I know that you can use the $collection variable after the
> loop in the first example below and it will contain the
> data you gave it in the loop,
yes got it. I was wondering if I could use the
command | while read.
do
foo=
done
construct to then use foo.
> My only point was that if you tried it with the code below, that your
> "$collection" variable would still be blank after the loop.
understand
Thanks
Joe
--
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!
More information about the TriLUG
mailing list