I am wondering how to modify this code.
ls
while [ 1 > 0 ]
do
fc -s
sleep 1
done
For fc -s, you can refer to this question for details.
My question are as follows:
- How will it run? If you name it as
test.sh. - If I want
fc -srepresent the first linels, how will I modify it? That is to say, I want to Runlsthen sleep one second, thenls, then sleep one second,... Of courselsmay be placed by some other command.
lsmay be placed by some other command." – unxnut Jul 18 '13 at 12:00watch. No need to make your own. – user Jul 18 '13 at 12:45watchis such a powerful tool that I cannot control the output. @MichaelKjörling – eccstartup Jul 18 '13 at 12:54