From owner-freebsd-questions Wed Dec 26 9:44:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gaia.nimnet.asn.au (nimbin.lnk.telstra.net [139.130.45.143]) by hub.freebsd.org (Postfix) with ESMTP id EE60637B405 for ; Wed, 26 Dec 2001 09:44:32 -0800 (PST) Received: from localhost (smithi@localhost) by gaia.nimnet.asn.au (8.8.8/8.8.8R1.2) with SMTP id EAA18866; Thu, 27 Dec 2001 04:44:24 +1100 (EST) (envelope-from smithi@nimnet.asn.au) Date: Thu, 27 Dec 2001 04:44:24 +1100 (EST) From: Ian Smith Reply-To: Ian Smith To: Joe & Fhe Barbish Cc: questions@FreeBSD.ORG Subject: Dos -> Unix end-of-line conversion In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I want to roll the /etc/ tree files with all kinds of txt files > but text in content only, not in file names, and convert them > in mass on there way to the floppy drive that's going to a windows > sys. How can I do this on the command line? # zip -l@ dosfiles.zip < yourlist find is handy for making yourlist, as has been mentioned; edit to taste. Conversely, 'unzip -a dosfiles.zip' restores CRLF->LF (or CR->LF for Mac files). Check 'man zip' for the -l and -ll options and 'man unzip' for the -a and -aa options. These options may be used (inversely) with DOS/win zip/unzip too, and of course you'll fit something like 3-4Mb of compressed text on the floppy. Cheers, Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message