problem using gunzip within a script
got a small script to uncompress and untar a bunch of files. The command works when I run it against 1 file on the command line, but when I stick it in a script in a for loop, it doesn't work. I've got
for file in `ls *.bd.tar.gz`
gzip -dc $file | tar xvf -
It's probably something obvious, but I can't see what it is. Any suggestions would be welcome.