Hello CarloM,
Thank you very much for your quick response.
Certainly this command is working, but its not fullfiling my requirement.
Let me tell you what exactly I want:
If Input.txt is having 9 rows that is
1
2
3
4
5
6
7
8
9
Then I don't want to split it.
If Input file is having 10 or more than 10 records then I want to split the input file into 10 subfiles.
Hope you understood my requirement.
---------- Post updated at 04:38 AM ---------- Previous update was at 04:34 AM ----------
Hello Balajesuri,
Thank you very much for your reply.But this is not fullfiling my requirement.
Please see my requirement once again:
I am having one input file i.e. Input.txt
It has 9 rows.Sometime it will have more than 9 rows also.
So what I want is I want to check if the total number of records in the input.txt is equals to 9 or less than 9 then DON'T SPLIT. However if total number of records in Input.txt is equals to greater than 10 then SPLIT THE FILE IN 10 NUMBER OF SUBFILES.
Thank you very much in advance.
---------- Post updated at 04:39 AM ---------- Previous update was at 04:38 AM ----------
Hello Balajesuri,
Thank you very much for your reply.But this is not fullfiling my requirement.
Please see my requirement once again:
I am having one input file i.e. Input.txt
It has 9 rows.Sometime it will have more than 9 rows also.
So what I want is I want to check if the total number of records in the input.txt is equals to 9 or less than 9 then DON'T SPLIT. However if total number of records in Input.txt is equals to greater than 10 then SPLIT THE FILE IN 10 NUMBER OF SUBFILES.
Thank you very much in advance.