Quote:
I know this snippet of code works - I've used it before.
I doubt it:
iname is undefined.
$2 is undefined (or, at least, has nothing to do with your input file).
hash is NOT output to anywhere.
url and
hash, in your snippet, won't assemble values after value.
An output file is not defined.
And the input file looks extremely garbled.
I guess, what you told the code to do...