return to first page linux journal archive
keywordscontents

Controlled Loop Script Example

#!/bin/sh
#
# A controlled loop script to create a very long 
# and boring text file.

let counter=0

while [ $counter -le 100000 ]

do

echo -n "The quick brown fox jumped over the lazyg 
dog's back." >> bigfile

let counter=counter+1

done