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: 
```
awk 'BEGIN {max = 0} {if ($6>max) max=$6} END {print max}' yourfile.txt

```
Use the `BEGIN` and `END` blocks to initialize and print variables that keep track of the min and max.

e.g.,

```
awk 'BEGIN{max=0;min=512} { if (max < $1){ max = $1 }; if(min > $1){ min = $1 } } END{ print max, min}'

```