Page 1 of 1

Using a shell script in Windows

Posted: Wed Jan 30, 2013 5:43 am
by MikeC
The following script to split a file into 50 MB chunks works fine in the Mac version.

do shell ("split -b50m" && theFile)

But not being familiar with Windows I'm having problems getting my head around how to do the same in the Windows version.

Re: Using a shell script in Windows

Posted: Wed Jan 30, 2013 6:58 am
by FourthWorld
I don't believe DOS has a "split" command. I believe split is among the many Linux shell commands available for Windows with CygWin:
http://www.cygwin.com/

Re: Using a shell script in Windows

Posted: Wed Jan 30, 2013 8:15 am
by Simon
Check out "read from file/until" in the dictionary.
50 MB is a lot to stuff into memory but I guess shell does the same.
Never tried reassembling a file using this.

Simon