I'm trying to use the quote
program to make a little shell script that'll keep updating the stock prices every second. quote
has to access the Internet and therefore has a small delay when it runs. I have to clear the screen each time, but I want to clear after quote
has completed and before cat
prints its output so there isn't a significant delay between the clear
and cat
:
while true
do
quote spy gld aapl amzn goog nflx tsla f gm msft | ??? clear | cat
sleep 1
done
I want the ???
command (which runs after quote
has printed its output of course) to run clear
then pass the output from quote
straight to the input for cat
. What command does that?