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.