Results 1 to 3 of 3
Hi,
I have the following directory structure:
/abc/123
/abc/234
/abc/345
/abc/xyz/678
/abc/xyz/789
/abc/xyz/890
/abc/efg/987
/abc/efg/765
/abc/efg/654
I want to create a zip file, using 'zip', of the above but without ...
- 06-23-2008 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 1
Zip Directories ignoring Base Directory
Hi,
I have the following directory structure:
/abc/123
/abc/234
/abc/345
/abc/xyz/678
/abc/xyz/789
/abc/xyz/890
/abc/efg/987
/abc/efg/765
/abc/efg/654
I want to create a zip file, using 'zip', of the above but without the /abc. zip -j removes /xyz/ and /efg/ which is not what I want.
Anyone have any ideas?
Thanks
- 06-23-2008 #2Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
Just cd into /abc and run zip from there.
Code:cd /abc; zip ~/file.zip *
- 06-23-2008 #3
hi,
what about
does not work?Code:zip destination_name /abc/*
Edit- i92guboj was fasterLinux and me it's a love story


Reply With Quote