I splitted one 501MB tar.gz file on linux using split command like this:

split -b 10m iall.tar.gz CASH

which was broken into 51 files in format CASHaa, CASHab - CASHaz than
CASHba - CASHby, than I used cat command to rejoin them like this:

cat CASHa[a-z] CASHb[a-z] > iall.tar.gz

after rejoing the file was perfect.

Yes in ANT we can implement this as feature as a command line file
splitter,
While surfing net I came across one java class file which solve the
problem of command line file splitting

http://www.freebyte.com/hjsplit/#win32

-Pritesh


-----Original Message-----
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 19, 2005 10:35 PM
To: Ant Users List
Subject: RE: Size of zip file

--- Ed Moon <[EMAIL PROTECTED]> wrote:

> Here's how to use cat to put a file back together
> again:
>       cat part1 part2 part3 part4 > wholefile
>
> Or
>       cat part1 > wholefile
>       cat part2 >> wholefile
>       cat part3 >> wholefile
>       cat part4 >> wholefile

or, when they are in order:

        cat part? > wholefile

 should also work.

In the context of Ant, <concat> with <fileset> should
easily handle the reassembly.  Since cat and split are
historically related, I would be +1 to adding a
contributed Java split implementation to Ant core, if
anyone cares to submit one.

-Matt




        
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to