Re: how to copy just part of a file?

2003-07-16 Thread Matthew Emmerton
> On Wed, 16 Jul 2003, BSD baby wrote: > > > Is there an easy built-in way to copy only part of a file? > > > > I want to take a WAV audio file and copy from #__ bytes to > > #___ bytes into a new file. > > > > (I'm making 30-second clips of files.) You might find WavSplit (http://www.xmailserver.

Re: how to copy just part of a file?

2003-07-16 Thread Mikko Työläjärvi
On Wed, 16 Jul 2003, BSD baby wrote: > Is there an easy built-in way to copy only part of a file? > > I want to take a WAV audio file and copy from #__ bytes to > #___ bytes into a new file. > > (I'm making 30-second clips of files.) Try "dd". Thus: dd bs=1 skip=$offset count=$length < infile

Re: how to copy just part of a file?

2003-07-16 Thread Dan Nelson
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 AS

Re: how to copy just part of a file?

2003-07-16 Thread Chuck Swiger
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. -- -Chuck _

how to copy just part of a file?

2003-07-16 Thread BSD baby
Is there an easy built-in way to copy only part of a file? I want to take a WAV audio file and copy from #__ bytes to #___ bytes into a new file. (I'm making 30-second clips of files.) 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 basi