I have a file env\_prop like below

```
Generic|HOSTNAME|UKLOSOLD
Generic|FileServerPort|42501
Generic|HubPort|45203
mlc|murexnetport|45204
mlc|DatabaseName|PX_abc02
Replicate|ReplicateForm|pxabc01
Replicate|ReplicateTo|hxxyz02

```

I want my output should be like below, uniquely sorting from the field 1

```
****  Generic Parameters  ****

HOSTNAME                  UKLOSOLD                      
FileServerPort            42501                         
HubPort                   45203                         

****  mlc Parameters  ****

murexnetport              45204                         
DatabaseName              px_abc02                    

****  Replicate Parameters  ****

ReplicateForm             pxabc01                      
ReplicateTo               hxxyz02 

```

but my prog does not give the required result could you please help on it 

```
for val in `cat env_prop|cut -d'|' -f1|uniq`
do
echo "****  ${val} Parameters  ****"
printf "\n"
awk -F"|" "/$val/ {printf "%-25s %-30s\n", $2 , $3}" env_prop
printf "\n"
done

```

Causing problem in awk statement in the printf section