How would I create a looping script?

Say I wanted to create a script that when 'sh’d would execute the following command every 10 seconds:

ls -l *.FIL

Can this be done, and if so, how would the script read? Using QNX 4.25.


while true
do
  ls -l *.FIL
  sleep 10
done

Thanks!