Question: During the startup of a Linux AMI, I would like to download some data (like the sun java libraries and some proprietary software) from an S3 bucket while initializing my EC2 connection. I notice that one way to do this is to use s3cmd. BUT, how do I get the configuration file for s3cmd .s3cfg from S3?

Also, let me also know if there is a better way to connect to S3 storage during init.

Thanks!

Answer: 
To build upon what @mob said, I think this is an escaping issue.
He's escaping too much, though. What you need is something like this:

```
my $results = `awk 'tolower(\$0) ~ $sanitized_query' *_Codes.txt`;

```

You want `$0` to be literal, but `$sanitized_query` to be interpolated. (In your code example above, you're escaping the wrong one).
`$0` is a valid symbol in Perl, too (it contains the name of the currently running Perl script) and is also interpolated inside backquotes. You need to escape it, too:

```
my $results = `awk 'tolower(\$0) ~ \$sanitized_query' *_Codes.txt`;

```