George Vieira <[EMAIL PROTECTED]>
> For some reason I can't get any variables inside a do/done loop to be seen
> outside the loop..eg.
> 
> #!/bin/bash
> 
> cat /var/log/blahblah.log | while read a
> do
>         LINE="Hello"
>         export LINE  <- even this doesn't work...????
>         exit 0
> done
> echo $LINE
> 
> 
> LINE returns empty... any ideas why and how around this. I need the th value
> outside the loop...
 
exit exits the script, not exits the loop.
You probably want break.

Dave.
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to