Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jul 2003 20:24:31 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to copy just part of a file?
Message-ID:  <20030717012430.GD44980@dan.emsphone.com>
In-Reply-To: <3F15F2EC.7050104@mac.com>
References:  <20030717004419.GA91784@mail.hitmedia.com> <3F15F2EC.7050104@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030717012430.GD44980>