![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Samba read only subfolder. | sparcman | UNIX and Linux Applications | 0 | 10-05-2009 11:59 AM |
| unzip few files but with same path and file name. | jimmy_y | Shell Programming and Scripting | 1 | 08-27-2009 11:20 PM |
| How to Unzip a .ZIP file in Unix without using unzip cmd..????? | sureshg_sampat | Shell Programming and Scripting | 5 | 11-15-2008 04:44 AM |
| Get zip path from unzip -l | phreezr | Shell Programming and Scripting | 2 | 10-23-2008 04:04 PM |
| How to Unzip a .ZIP file in Unix without using unzip cmd..????? | sureshg_sampat | HP-UX | 5 | 02-08-2007 10:01 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Unzip subfolder to some path.
I have a zip file (somezipfile.zip) with the following contents in it:
dir1/subdir1/somefile1.txt dir1/subdir2/somefile2.txt dir1/subdir2/somefile3.txt dir1/somefile3.txt dir1/somefile4.txt dir2/somefile5.txt dir2/somefile6.txt Lets say I unzip this to my home directory so now I have: /home/me/dir1/subdir1/somefile1.txt /home/me/dir1/subdir2/somefile2.txt /home/me/dir1/subdir2/somefile3.txt /home/me/dir1/somefile3.txt /home/me/dir1/somefile4.txt /home/me/dir2/somefile5.txt /home/me/dir2/somefile6.txt Now I do rm -rf /home/me/dir1/subdir2: /home/me/dir1/subdir1/somefile1.txt /home/me/dir1/somefile3.txt /home/me/dir1/somefile4.txt /home/me/dir2/somefile5.txt /home/me/dir2/somefile6.txt How can I unzip ONLY the subdir2 folder and the files it contains into the /home/me/dir1 folder without freshening or touching the other directories? Also consider I may have subdirectories within subdir2 as well. All responses are greatly appreciated. Thanks in advance. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|