What does the file look like? How big is it?
If it has 1 number per line, you could sort it in ascending order, and then take the first line (smallest) and last line (largest) .. i.e. (in ksh)
[tt]
SMALLEST=`sort myfile | head -1`
LARGEST=`sort myfile | tail -1`
[/tt]
You'll need to check the syntax of sort, but that's one possible way.
Greg.
[sig][/sig]