From owner-freebsd-questions@FreeBSD.ORG Wed Jul 16 18:24:34 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A59F337B401 for ; Wed, 16 Jul 2003 18:24:34 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED09D43F75 for ; Wed, 16 Jul 2003 18:24:33 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h6H1OVMl073329; Wed, 16 Jul 2003 20:24:31 -0500 (CDT) (envelope-from dan) Date: Wed, 16 Jul 2003 20:24:31 -0500 From: Dan Nelson To: Chuck Swiger Message-ID: <20030717012430.GD44980@dan.emsphone.com> References: <20030717004419.GA91784@mail.hitmedia.com> <3F15F2EC.7050104@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F15F2EC.7050104@mac.com> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: BSD baby cc: freebsd-questions@freebsd.org Subject: Re: how to copy just part of a file? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2003 01:24:34 -0000 In the last episode (Jul 16), Chuck Swiger said: > BSD baby wrote: > [ ... ] > > Though I found a scripting way to do it with PHP, I'm wondering if > > there's a more direct way to do it with basic GNU/BSD commands. > > GNU split will take options related to size/byte counts, rather than > just ASCII lines. ... as will any other POSIX-conforming split, including FreeBSD's. But you need more than that because wav files have a header that you'll have to duplicate onto each output file. You can use the sox port to convert the wav file into a raw pcm file that can be split up, then convert the pieces back to wavs with sox again. -- Dan Nelson dnelson@allantgroup.com