dbTalk Databases Forums  

Using the zip/unzip command given with Oracle in Unix, withoutdirectory names

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Using the zip/unzip command given with Oracle in Unix, withoutdirectory names in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
compuneo
 
Posts: n/a

Default Using the zip/unzip command given with Oracle in Unix, withoutdirectory names - 09-02-2008 , 04:19 AM






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

Reply With Quote
  #2  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Using the zip/unzip command given with Oracle in Unix, without directory names - 09-02-2008 , 04:53 AM






On Tue, 2 Sep 2008 02:19:10 -0700 (PDT), compuneo <compuneo (AT) gmail (DOT) com>
wrote:

Quote:
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


Reply With Quote
  #3  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Using the zip/unzip command given with Oracle in Unix, without directory names - 09-02-2008 , 04:53 AM



On Tue, 2 Sep 2008 02:19:10 -0700 (PDT), compuneo <compuneo (AT) gmail (DOT) com>
wrote:

Quote:
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


Reply With Quote
  #4  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Using the zip/unzip command given with Oracle in Unix, without directory names - 09-02-2008 , 04:53 AM



On Tue, 2 Sep 2008 02:19:10 -0700 (PDT), compuneo <compuneo (AT) gmail (DOT) com>
wrote:

Quote:
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


Reply With Quote
  #5  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: Using the zip/unzip command given with Oracle in Unix, without directory names - 09-02-2008 , 04:53 AM



On Tue, 2 Sep 2008 02:19:10 -0700 (PDT), compuneo <compuneo (AT) gmail (DOT) com>
wrote:

Quote:
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


Reply With Quote
  #6  
Old   
compuneo
 
Posts: n/a

Default Re: Using the zip/unzip command given with Oracle in Unix, withoutdirectory names - 09-02-2008 , 07:11 AM



Thanks for your response.

Actually, there's an option with the zip command, -j, which helps to
drop the directory names as I was expecting.
I overlooked this option earlier. Now, it's fine.

On Sep 2, 12:53*pm, sybra... (AT) hccnet (DOT) nl wrote:
Quote:
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 -


Reply With Quote
  #7  
Old   
compuneo
 
Posts: n/a

Default Re: Using the zip/unzip command given with Oracle in Unix, withoutdirectory names - 09-02-2008 , 07:11 AM



Thanks for your response.

Actually, there's an option with the zip command, -j, which helps to
drop the directory names as I was expecting.
I overlooked this option earlier. Now, it's fine.

On Sep 2, 12:53*pm, sybra... (AT) hccnet (DOT) nl wrote:
Quote:
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 -


Reply With Quote
  #8  
Old   
compuneo
 
Posts: n/a

Default Re: Using the zip/unzip command given with Oracle in Unix, withoutdirectory names - 09-02-2008 , 07:11 AM



Thanks for your response.

Actually, there's an option with the zip command, -j, which helps to
drop the directory names as I was expecting.
I overlooked this option earlier. Now, it's fine.

On Sep 2, 12:53*pm, sybra... (AT) hccnet (DOT) nl wrote:
Quote:
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 -


Reply With Quote
  #9  
Old   
compuneo
 
Posts: n/a

Default Re: Using the zip/unzip command given with Oracle in Unix, withoutdirectory names - 09-02-2008 , 07:11 AM



Thanks for your response.

Actually, there's an option with the zip command, -j, which helps to
drop the directory names as I was expecting.
I overlooked this option earlier. Now, it's fine.

On Sep 2, 12:53*pm, sybra... (AT) hccnet (DOT) nl wrote:
Quote:
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 -


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.