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 -s
represent the first linels
, how will I modify it? That is to say, I want to Runls
then sleep one second, thenls
, then sleep one second,... Of coursels
may be placed by some other command.
ls
may 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:45watch
is such a powerful tool that I cannot control the output. @MichaelKjörling – eccstartup Jul 18 '13 at 12:54