|
Many thanks, Mihael. That was very useful. I had misunderstood what the -D parameter did. Your kindly informative response opened my eyes to the need to be positioned within the directory I want. Rather than accessing it via a path. Regards, Mike Mihael Knezevic wrote: subject: RE: qshell ajar utility jar utility i tested it on v5r2 and the -D parameter will cause ajar to just skip any directory and all files below it. if you have for example the following dir structure: myfile.txt mydir mydir/myfile-1.txt mydir/myfile-2.txt and if you use the -D parameter ajar will include the myfile.txt but will skip mydir and all files below it. so i think you can't do it in just one step. perhaps you can list the files with the find command and copy the files to some temp dir. the use ajar to zip 'em. <code> ALL_FILES=$(find $1) for i in $ALL_FILES; do cp $i /tmp/testing done; ajar -c myfile.jar /tmp/testing/* </code> perhaps this code will help you. mk -- This message is intended for the use of the addressee and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of the information contained in this message is strictly unauthorized and prohibited. If you have received this message in error, please notify the sender by reply e-mail and delete the message from your system. Opinions, conclusions, or other statements in this message which do not relate to the business of Coty Inc.,its subsidiaries or affiliates, are neither given nor endorsed by Coty Inc.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.