If you know relative filename of intermediate file, try
tar -xf $1 -O path/to/file.tar.gz | tar xf - where
-O, --to-stdout Extract files to standard output.
you might need
-zflag in second tarplease note that
-is synonym for stdin, maybe that what you meant (tar -xf $1 | tar -xf xargs(*) ) ?tar -xf $1 | tar -xf -
(*) xargs is backquoted
If you feel adventurous, you can also try option --to-command=COMMAND
tar -xf $1 --to-command="tar -xzf -" path/to/file - I advise to test before going "production"
- Do not use absolute path