[Techtalk] splitting files in dir to make ISO

Conor Daly conor.daly-linuxchix at cod.homelinux.org
Wed Nov 23 10:27:17 EST 2005


On Tue, Nov 22, 2005 at 09:07:30PM +0000 or so it is rumoured hereabouts, 
Noir thought:
> I have a directory full of files worth 1.3GB in size.
> Now, I need to make ISO (700MB) (mkisofs) each to burn
> them in a cd (cdrecord). I was wondering if I could
> split the total files in the directory so that I could
> get 2 or 3 ISOs' which I can burn later.
> 
> Do I need to write a sh script or is there any other
> smarter way of doing this?
> 
> sample (dummy) sh script
> ----------------
> 
> for i in DIR
>  do
>     split in half
>     mkisofs
> done

If this is a one-off, I'd go with just making a pair of directories and
moving half into each.

mv a* DIR1
mv b* DIR1
:
:
:
mv r* DIR2
mv s* DIR2
:
:

mkisofs DIR1
mkisofs DIR2

Conor
-- 
Conor Daly <conor.daly at cod.homelinux.org>

Domestic Sysadmin :-)
---------------------
Hobbiton.cod.ie
 23:25:04 up 16 days, 11:48,  1 user,  load average: 0.39, 0.16, 0.07


More information about the Techtalk mailing list