On Thu, Jan 19, 2012 at 1:35 AM, Wawrzek
> On 01/18/12 16:34, lina wrote:
> 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
> 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:
> What about using `ls -1 sys_em_*.txt | wc -l` to
check the number of
> I.e. (I hope it works):
> my_number = 400
> while :
> if [ ` ls -1 sys_em_*.txt | wc -l` == "$my_number"