0

I am trying to extract to file to specific directory but it doesn't produce result.

Command:

zcat /export/home/tceng/Desktop/temp/3.tar.Z | tar -xf - -C /export/home/tceng/Desktop/temp/TestExtractUtility/

if we remove value -C onwards in above command it produces result.

Thanks

jww
  • 97,681
  • 90
  • 411
  • 885
Anil Bhendarkar
  • 51
  • 1
  • 2
  • 7
  • This question appears to be off-topic because it is not about programming or development. See [What topics can I ask about here](http://stackoverflow.com/help/on-topic) in the Help Center. Perhaps [Super User](http://superuser.com/) or [Unix & Linux Stack Exchange](http://unix.stackexchange.com/) would be a better place to ask. – jww Mar 02 '15 at 12:32

1 Answers1

0

Try:

zcat ... | ( cd /path/to/desired/directory; tar -xf - )
William Pursell
  • 204,365
  • 48
  • 270
  • 300