From owner-freebsd-questions@FreeBSD.ORG Tue Sep 21 03:25:02 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F32CE106564A for ; Tue, 21 Sep 2010 03:25:02 +0000 (UTC) (envelope-from editor@d3photography.com) Received: from qmta01.westchester.pa.hmc1.comcast.net (qmta01.westchester.pa.hmc1.comcast.net [76.96.53.8]) by mx1.freebsd.org (Postfix) with ESMTP id B7B0B8FC08 for ; Tue, 21 Sep 2010 03:25:02 +0000 (UTC) Received: from omta01.westchester.pa.hmc1.comcast.net ([76.96.53.6]) by qmta01.westchester.pa.hmc1.comcast.net with comcast id 9F8s1f00F082Dic01FBmwS; Tue, 21 Sep 2010 03:11:46 +0000 Received: from [10.0.1.9] ([70.89.202.1]) by omta01.westchester.pa.hmc1.comcast.net with bizsmtp id 9FBk1f00202K3z201FBmVQ; Tue, 21 Sep 2010 03:11:46 +0000 From: Ryan Coleman Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Mon, 20 Sep 2010 22:11:44 -0500 Message-Id: To: FreeBSD Questions Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) Subject: Zip file making issues X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Sep 2010 03:25:03 -0000 Does anyone have any advice for this? I'm working on a series of commands - executed in a shell script - that = zips a deep directory in a tree. But it makes the full path as part of = the ZIP file. That's not what I want - I just want those directories = that appear after the "*". In this case: "-J" eliminates all the paths - bad because it also kills those after = the "*" Here's my default that includes the whole d*mn path. /usr/local/bin/zip -r = /usr/www/d3photography.com/htdocs/images/paidphotos/1284343047-Le-ach.zip = /mount/archive/orders/Sep20/1284343047-Le-ach/download* I could just run a "cd" to the directory parent and do it there - that = would solve the problem - but that's simply too dangerous if the script = generator throws an error on the next set of commands (a risk I do not = want to take). So how do I get it to store as "download/small/image.jpg" inside of the = ZIP file instead of = "mount/archive/orders/Sep20/1284343047-Le-ach/download/small/image.jpg". I only recently discovered this bug -- none of my clients have had the = guts to tell me about it. TIA, Ryan=20=