Next: Changing file extensions in
Up: More shell script examples
Previous: Printing with proper tab
Contents
Suppose you have a program, say MySort, that we want to test for several input
sizes. We can write a script to automate the testing as follows
#!/bin/sh
for n in 10000 20000 30000 40000 50000 60000
do
echo '---Running MySort for ' $n ' elements---'
MySort $n
echo
done
Amit Jain
2006-11-20