awk recieving script variables.

Hi,

I have a script which recieves 3 variables.

#!/bin/bash
Directory=$1
Archive=$2
Log_File_Path=$3
...
...
...
gzip -l *.xml.gz |awk '{print $1"^"$2"^"$4}'|sed '$d'

In awk instead of $1 which should be Compressed size its recieving Directory name.

How should this be handled?

Thanks,
Chetan.C

See this. Chi Hung Chan: Four Ways to Pass Shell Variables in AWK