Question: I am using AQGridView in my project. we need to create a black colored border around each image. Can anyone help me on this. 

Thanks in advance.

Regards,
Jas.

Answer: 
If your file contains empty lines, neither of the posted solutions will work.
For correct handling of empty lines try this:

```
$ cat f.awk
BEGIN{getline;min=max=$6}
NF{
    max=(max>$6)?max:$6
    min=(min>$6)?$6:min
}
END{print min,max} 

```

Then run this command:

```
sed "/^#/d" my_file | awk -f f.awk

```

At first it catches the first line of the file to set min and max.
Than for each non-empty line it use the ternary operator check,
if a new min or max was found. At the end the result ist printed.

HTH Chris
The min can be found by:

```
awk 'BEGIN {min=1000000; max=0;}; { if($2<min && $2 != "") min = $2; if($2>max && $2 != "") max = $2; } END {print min, max}' file

```

This will output the minimum and maximum, comma-separated