Windows Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsWindows Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 9th, 2012, 05:41 AM
userdefined userdefined is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2011
Posts: 56 userdefined User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 53 m 36 sec
Reputation Power: 3
Batch extract contents of folder in .tgz files

I'd like to extract lots of .tgz files, well a particular folder inside the tgz into folder (overwriting files if the source is newer than target). Is there a command I can use, or a program that will do this efficiently?

thanks

Reply With Quote
  #2  
Old August 9th, 2012, 07:03 AM
salem's Avatar
salem salem is offline
Contributed User
Click here for more information
 
Join Date: Jun 2005
Posts: 3,906 salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)salem User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 153 Folding Title: Novice Folder
Time spent in forums: 2 Months 3 Weeks 4 Days 1 h 31 m 41 sec
Reputation Power: 1774
Use a for loop
Say something like
for %i in ( *.tgz ) do echo %i

If you know what command (in this example echo) you want to apply to one file, then this will efficiently apply the same thing to all tgz files.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper

Reply With Quote
  #3  
Old August 9th, 2012, 09:24 AM
userdefined userdefined is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2011
Posts: 56 userdefined User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 53 m 36 sec
Reputation Power: 3
Do you mean I should write a program to do this? I'm not sure how to look inside a tgz file to extract the folder and to set it to only overwrite if newer

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsWindows Help > Batch extract contents of folder in .tgz files

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap