[Techtalk] Looping with numbers in filenames

Kathryn Hogg kjh at flyballdogs.com
Tue Feb 15 17:01:17 UTC 2011


Small typo in my previous post, I had an errant $ in the echo command

num=1;
while expr $num '<' 25 >/dev/null
do
   echo file${num}.txt;
   num=$(expr $num + 1);
done

-- 
Kathryn
http://womensfooty.com
US Freedom Signup: http://womensfooty.com/freedom/2011


More information about the Techtalk mailing list