From: brabuhr@... Date: 2009-10-08T00:19:01+09:00 Subject: Re: lunix split with ruby On Wed, Oct 7, 2009 at 6:19 AM, Ahmet Kilic wrote: > I am using cygwin on windows. > I write this script. I have to split all files in the > directory. > > Dir.foreach('C:/tmp/test') {|file| >  f = system( "split -l 60000 #{file}") >    puts "file  name : #{f}" > } > > I want to split the files > file1-1.txt > file1-2.txt > file1-3.txt > .... > > how can i do it ? > > please help me. What (incorrect) output does your current script produce?