BASH question
David C. Chipman
dchipman-rYHPKw+MWrk at public.gmane.org
Sun Dec 16 01:32:24 UTC 2007
Hi Madi,
Did you try putting quotes around the "$(" and ")", or
around "$QRY_LINE" after the echo's? Just a thought
> > -- Start code ---
> >
> > for QRY_LINE in $(<some-mysql-cli-command>)
> > do
> > ROW_NUM=$(echo $QRY_LINE | awk '{ print $1 }")
> > VAR1=$(echo $QRY_LINE | awk '{ print $2 }')
> > VAR2=$(echo $QRY_LINE | awk '{ print $3 }')
> > VAR2=$(echo $QRY_LINE | awk '{ print $4 }')
> > DATE1=$(echo $QRY_LINE | awk '{ print $5 }')
> > TIME=$(echo $QRY_LINE | awk '{ print $6 }')
> > DATE2=$(echo $QRY_LINE | awk '{ print $7 }')
> > done
> >
> > -- End code --
Good luck, Madi,
-David Chipman
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list