LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2012, 06:51 PM   #16
WSmart
Member
 
Registered: Oct 2009
Posts: 32

Rep: Reputation: 0
Nice solution, got it to undo unzip as well


Pardon me for pulling up this old thread. This is still a top result searching 'undo tar'.

I successfully used the command construct posted by Infinity0. Life saver; I had over 3GB of files in my home directory while playing with a NWN install.

I also successfully tested and applied a modified version to undo unzip replacing the first part of the sequence with unzip -t file.zip.

Be aware that these can take a significant amount of processing power. If you have a number of files to do, consider combining them on one line with a semicolon as I have it below so that they execute in succession.

unzip -t /media/NW_DIAMOND/Data_linux.zip | sort -r | xargs rm -f 2>/dev/null;unzip -t /media/NW_DIAMOND/Data_Shared.zip | sort -r | xargs rmdir 2>/dev/null

Thanks LinuxQuestions.org community, thanks all.

Be real, be sober.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to extract a "tar.bz2" file? deWin Linux - Newbie 14 08-09-2016 09:49 AM
"You don't have the right permissions to extract archives in the folder " please help redhatman13 Linux - Software 18 10-15-2008 06:52 AM
Dont get "extract here" choice on context menu eroica Mandriva 4 12-20-2005 02:38 PM
Unable to extract "tar.gz" file - please try for me Riddick Linux - Software 6 08-27-2005 05:57 PM
"how do I extract a number from a text file using shell command?" sdandeker Linux - Networking 3 02-12-2004 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration