I am wondering how to modify this code.
ls while [ 1 > 0 ] do fc -s sleep 1 done
fc -s, you can refer to this question for details.
My question are as follows:
- How will it run? If you name it as
- If I want
fc -srepresent the first line
ls, how will I modify it? That is to say, I want to Run
lsthen sleep one second, then
ls, then sleep one second,... Of course
lsmay be placed by some other command.