Problem extracting zipped tar file | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Problem extracting zipped tar file

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-30-2013
asandy1234 asandy1234 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 11 June 2014, 4:24 PM EDT
Posts: 37
Thanks: 4
Thanked 1 Time in 1 Post
Problem extracting zipped tar file

I was extracting the zipped tar file with the command
gzip -dc Sample.tar.gz |tar xf -

The tar file contained many delimited files; but lately they changed the structure of the tar file with another folder. So now all the delimited files are inside a folder called "Folder1" and the folder is packaged with tar.

When I try to run the above command I get an error like below


Code:
tar: 0511-188 Cannot create Folder1\/sample1.del: The file access permissions do not allow the specified action.

Thanks...
Sponsored Links
    #2  
Old 01-30-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 26 November 2014, 4:51 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,526
Thanks: 8
Thanked 555 Times in 532 Posts
Maybe it is restoring original id and permissions, so try it with 'u'.
Sponsored Links
    #3  
Old 01-30-2013
asandy1234 asandy1234 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 11 June 2014, 4:24 PM EDT
Posts: 37
Thanks: 4
Thanked 1 Time in 1 Post
Can you please specify exactly where should I use the 'u' option..

Thanks,
    #4  
Old 01-30-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 26 November 2014, 4:51 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,526
Thanks: 8
Thanked 555 Times in 532 Posts
Sorry, I meant o, but options vary between versions
Code:
tar xof tarfile


Last edited by DGPickett; 01-30-2013 at 07:15 PM..
The Following User Says Thank You to DGPickett For This Useful Post:
asandy1234 (01-30-2013)
Sponsored Links
    #5  
Old 01-31-2013
asandy1234 asandy1234 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 11 June 2014, 4:24 PM EDT
Posts: 37
Thanks: 4
Thanked 1 Time in 1 Post
It didn't help I get the same error
Sponsored Links
    #6  
Old 01-31-2013
DGPickett DGPickett is offline Forum Advisor  
Registered User
 
Join Date: Oct 2010
Last Activity: 26 November 2014, 4:51 PM EST
Location: Southern NJ, USA (Nord)
Posts: 4,526
Thanks: 8
Thanked 555 Times in 532 Posts
Can you run t on it to see where it wants to drop files? Maybe it has an absolute path. Nice tar files are all relative paths. You might need to make a matching landing zone directory to support the problem entry.
Sponsored Links
    #7  
Old 01-31-2013
Yoda's Avatar
Yoda Yoda is offline Forum Advisor  
Jedi Master
 
Join Date: Jan 2012
Last Activity: 26 November 2014, 4:40 PM EST
Location: Galactic Empire
Posts: 3,389
Thanks: 236
Thanked 1,210 Times in 1,136 Posts
Also try:

Code:
tar -b 512 -zxvf Sample.tar.gz

I found similar issues reported and the solution was to use GNU tar instead.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Issue in extracting Tar and Zipped file. Quesemail UNIX for Advanced & Expert Users 1 02-13-2012 03:34 AM
Zipped tar file is corrupt Pramodini Rode UNIX for Dummies Questions & Answers 2 02-25-2011 04:23 PM
Extracting from a tar file nmalencia UNIX Desktop for Dummies Questions & Answers 1 03-22-2008 07:42 AM
extracting from a tar file Reza Nazarian UNIX for Dummies Questions & Answers 4 03-24-2006 05:54 AM
Extracting a .tar file javashakes UNIX for Dummies Questions & Answers 2 04-14-2002 12:11 AM



All times are GMT -4. The time now is 01:28 AM.