redirecting output and creating condition for while loop.

I have 2 questions.

1) Is there a means of directing output to a file (">") while making it still output to the console?

I have a script that calls another lengthy script.

2) I can direct the output of the lengthy script and grep it for the words "good" or "bad" to know if I need the run the script again, but how would this exactly work? I'm just looking for the most efficient code.

Rather than putting anything in a file, I'd like to just grep the output:

while `. ./lengthyScript.sh | grep bad`
do
          echo "repeating script"
done

I'm wondering how to evaluate if ". ./lengthyScript.sh | grep bad" is true of not. If you have any suggestions here, I'd really appreciate it.

try..

echo test | tee file

Most of the time i use for loop

for item in `. ./lengthyScript.sh | grep bad`
do
          echo "repeating script"
done

Thanks a lot. tee works great for what i'm doing. Next, I'll try the for loop.