Re: Spliting and creating small files from a main files based on line number

2015-03-25 Thread Jim Gibson
> On Mar 25, 2015, at 10:07 AM, Anirban Adhikary > wrote: > > Hi List > I have a configuration file and I would like to split the main file into > multiple small files and push the small temp. files into an array. My config > file looks like this > > GRC01;8;8;1;1;323U6_SIU-8;2048;2048;20;0

Re: Spliting and creating small files from a main files based on line number

2015-03-25 Thread Anirban Adhikary
Hi Sholmi I am using write mode for file writing because filename with counter value has assigned so there is no possibility of overwriting. What I would like to do i already said create some small file out of a main config file. IfI do not assign on $i then the for loop will not start from the n

Re: Spliting and creating small files from a main files based on line number

2015-03-25 Thread Shlomi Fish
Hi Anirban, On Wed, 25 Mar 2015 22:37:39 +0530 Anirban Adhikary wrote: > Hi List > I have a configuration file and I would like to split the main file into > multiple small files and push the small temp. files into an array. My > config file looks like this > > GRC01;8;8;1;1;323U6_SIU-8;2048;20