[paranoia] splitting sound files?

Ralph Corderoy ralph at inputplus.demon.co.uk
Mon Feb 19 03:22:21 PST 2001



Hi Wolfgang,

> > > But then there's always 'man split'.
> >
> > And just as for some versions of dd(1), some versions of split(1)
> > don't work on non-text files.  :-(
> 
> In that case there are at least 2 posibilities:
> - use GNU split
> - gripe at your vendor to give you a usable split :-)

Why not get a dd that avoids the reads or gripe to my vendor about dd?

dd will work everywhere but maybe the O(N**2) number of reads will be
an issue.

plit won't work in some places;  it doesn't handle binary.

I'd rather have dd, and recommend dd to others since it will work.

Besides, split won't solve what turned out to be the actual
requirement;  truncating the file in-place as the tail is stripped off.
dd could be used to do that ;-)

    dd if=in of=9  bs=3000 skip=9 count=1
    dd if=in of=in bs=3000 seek=9 count=0
    dd if=in of=8  bs=3000 skip=8 count=1
    dd if=in of=in bs=3000 seek=8 count=0
    ...

Ralph.

--- >8 ----
List archives:  http://www.xiph.org/archives/
Paranoia homepage: http://www.xiph.org/paranoia/
To unsubscribe from this list, send a message to 'paranoia-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Paranoia mailing list