Oracle Solaris System Administration (MOSC)

MOSC Banner

ZIP exclude option not working - Solaris 10

edited Oct 22, 2013 3:54AM in Oracle Solaris System Administration (MOSC) 2 commentsAnswered ✓
Hi,
I running a latest patch/version of zip (version 3.0). When i'm zipping my files, i've encoutered a problem, i need to exclude a certain file when zipping all files in 1 directory but seems like the file is included and zip completely ignore the "-x" flag. Maybe i'm missing something here or doing it the wrong way.

I have 4 files and in 1 directory (ETL_test):
excl_file
file1
file2
file3

I want to exclude "excl_file" from the zipped archive (sk.lookup_test.zip), and this is the command i'm running and the output:

# zip -jmT /ETL_test/sk.lookup_test.zip /ETL_test/* -x /ETL_test/excl_file

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center