A
Ahmet Kilic
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}"
}
My files is
file1.txt 10mb
file2.txt 14mb
file3.txt 8mb
file4.txt 5mb
I want to split the files
file1-1.txt
file1-2.txt
file1-3.txt
....
file4-1.txt
file4-2.txt
how can i do it ?
please help me.
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}"
}
My files is
file1.txt 10mb
file2.txt 14mb
file3.txt 8mb
file4.txt 5mb
I want to split the files
file1-1.txt
file1-2.txt
file1-3.txt
....
file4-1.txt
file4-2.txt
how can i do it ?
please help me.