The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 04-26-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
Proper fanatics would perhaps prefer

Code:
for n in $(seq 50); do [ -e statistics.$n ] || echo statistics.$n is missing; done
seq is not universal, that's why I started out with Perl; but if you have it, it's excellent for this type of job.