how to check 400 files exist



Hi,

Thanks ahead for reading this email.

I am choked by how to check more than 400 files exist or not, if not,
sleep, but once it's all generated, continue do something.

for i in $(seq 5); do if [ -e sys_em_$i.txt ] ; then echo done ; fi ;
done not work.

those files have a common feature:

sys_em_$i.txt

Thanks for any advice,

Best wishes,


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/CAG9cJm=Vb2SttucGnOJPXD5BKbMaOtQSq0ZVrBfH030AdqpDcg@xxxxxxxxxxxxxx



Relevant Pages

  • Re: GNOME and Power Management
    ... I'm having a very annoying trouble with GNOME Power Management.I ... if the computer is let idle for some time, the monitor goes to sleep. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • thinkpad suspend/resume woes
    ... Check out the new MSN Search! ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Re: SATA disc spindown
    ... This is why I posted the wiki link: the article explains how to create a bootable freedos image with the exe included. ... some disagree because mdraid does not handle it well should one array member sleep and another member doesn't. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Fwd: how to check 400 files exist
    ... Sorry to send to Darac, ... how can I return to check after sleep 10 seconds? ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: daemonizing a command
    ... I was thinking to use nohup ruby app.rb & at rc.local, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)