![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am trying to compress using the zip/unzip command given with Oracle in Unix. The objective is to create a zip file, for e.g. for the following, from any directory other than tt, without the directory name. tt/f1.txt tt/f2.txt into tt.zip. Say I'm using this command: zip -r tt.zip tt/ In other words, I want the zip file to have only f1.txt and f2.txt. I am not able to compress without the directory names. I have seen all the options (shown with -h option) given with zip and also tried to see if unzip has any option to extract without the directory names. I could not find. Can anyone please advise. If there is any other Unix compression commands, to achieve this (.zip format). Thanks, Vijay |
#3
| |||
| |||
|
|
Hi, I am trying to compress using the zip/unzip command given with Oracle in Unix. The objective is to create a zip file, for e.g. for the following, from any directory other than tt, without the directory name. tt/f1.txt tt/f2.txt into tt.zip. Say I'm using this command: zip -r tt.zip tt/ In other words, I want the zip file to have only f1.txt and f2.txt. I am not able to compress without the directory names. I have seen all the options (shown with -h option) given with zip and also tried to see if unzip has any option to extract without the directory names. I could not find. Can anyone please advise. If there is any other Unix compression commands, to achieve this (.zip format). Thanks, Vijay |
#4
| |||
| |||
|
|
Hi, I am trying to compress using the zip/unzip command given with Oracle in Unix. The objective is to create a zip file, for e.g. for the following, from any directory other than tt, without the directory name. tt/f1.txt tt/f2.txt into tt.zip. Say I'm using this command: zip -r tt.zip tt/ In other words, I want the zip file to have only f1.txt and f2.txt. I am not able to compress without the directory names. I have seen all the options (shown with -h option) given with zip and also tried to see if unzip has any option to extract without the directory names. I could not find. Can anyone please advise. If there is any other Unix compression commands, to achieve this (.zip format). Thanks, Vijay |
#5
| |||
| |||
|
|
Hi, I am trying to compress using the zip/unzip command given with Oracle in Unix. The objective is to create a zip file, for e.g. for the following, from any directory other than tt, without the directory name. tt/f1.txt tt/f2.txt into tt.zip. Say I'm using this command: zip -r tt.zip tt/ In other words, I want the zip file to have only f1.txt and f2.txt. I am not able to compress without the directory names. I have seen all the options (shown with -h option) given with zip and also tried to see if unzip has any option to extract without the directory names. I could not find. Can anyone please advise. If there is any other Unix compression commands, to achieve this (.zip format). Thanks, Vijay |
#6
| |||
| |||
|
|
On Tue, 2 Sep 2008 02:19:10 -0700 (PDT), compuneo <compu... (AT) gmail (DOT) com wrote: Hi, I am trying to compress using the zip/unzip command given with Oracle in Unix. The objective is to create a zip file, for e.g. for the following, from any directory other than tt, without the directory name. tt/f1.txt tt/f2.txt into tt.zip. *Say I'm using this command: zip -r tt.zip tt/ In other words, I want the zip file to have only f1.txt and f2.txt. I am not able to compress without the directory names. I have seen all the options (shown with -h option) given with zip and also tried to see if unzip has any option to extract without the directory names. *I could not find. Can anyone please advise. *If there is any other Unix compression commands, to achieve this (.zip format). Thanks, Vijay Please cd into the directory at hand. As far as I know this is the only method to drop the directory names. This applies to tar and other utilities too. -- Sybrand Bakker Senior Oracle DBA- Hide quoted text - - Show quoted text - |
#7
| |||
| |||
|
|
On Tue, 2 Sep 2008 02:19:10 -0700 (PDT), compuneo <compu... (AT) gmail (DOT) com wrote: Hi, I am trying to compress using the zip/unzip command given with Oracle in Unix. The objective is to create a zip file, for e.g. for the following, from any directory other than tt, without the directory name. tt/f1.txt tt/f2.txt into tt.zip. *Say I'm using this command: zip -r tt.zip tt/ In other words, I want the zip file to have only f1.txt and f2.txt. I am not able to compress without the directory names. I have seen all the options (shown with -h option) given with zip and also tried to see if unzip has any option to extract without the directory names. *I could not find. Can anyone please advise. *If there is any other Unix compression commands, to achieve this (.zip format). Thanks, Vijay Please cd into the directory at hand. As far as I know this is the only method to drop the directory names. This applies to tar and other utilities too. -- Sybrand Bakker Senior Oracle DBA- Hide quoted text - - Show quoted text - |
#8
| |||
| |||
|
|
On Tue, 2 Sep 2008 02:19:10 -0700 (PDT), compuneo <compu... (AT) gmail (DOT) com wrote: Hi, I am trying to compress using the zip/unzip command given with Oracle in Unix. The objective is to create a zip file, for e.g. for the following, from any directory other than tt, without the directory name. tt/f1.txt tt/f2.txt into tt.zip. *Say I'm using this command: zip -r tt.zip tt/ In other words, I want the zip file to have only f1.txt and f2.txt. I am not able to compress without the directory names. I have seen all the options (shown with -h option) given with zip and also tried to see if unzip has any option to extract without the directory names. *I could not find. Can anyone please advise. *If there is any other Unix compression commands, to achieve this (.zip format). Thanks, Vijay Please cd into the directory at hand. As far as I know this is the only method to drop the directory names. This applies to tar and other utilities too. -- Sybrand Bakker Senior Oracle DBA- Hide quoted text - - Show quoted text - |
#9
| |||
| |||
|
|
On Tue, 2 Sep 2008 02:19:10 -0700 (PDT), compuneo <compu... (AT) gmail (DOT) com wrote: Hi, I am trying to compress using the zip/unzip command given with Oracle in Unix. The objective is to create a zip file, for e.g. for the following, from any directory other than tt, without the directory name. tt/f1.txt tt/f2.txt into tt.zip. *Say I'm using this command: zip -r tt.zip tt/ In other words, I want the zip file to have only f1.txt and f2.txt. I am not able to compress without the directory names. I have seen all the options (shown with -h option) given with zip and also tried to see if unzip has any option to extract without the directory names. *I could not find. Can anyone please advise. *If there is any other Unix compression commands, to achieve this (.zip format). Thanks, Vijay Please cd into the directory at hand. As far as I know this is the only method to drop the directory names. This applies to tar and other utilities too. -- Sybrand Bakker Senior Oracle DBA- Hide quoted text - - Show quoted text - |
![]() |
| Thread Tools | |
| Display Modes | |
| |