Hello, Monks, I have post it before but it seems to me I am not making myself clear. The toughest situation is: I CAN NOT USE OPEN ON THE FILE! IT IS TOO LARGE TO OPEN IN MY OS. So I can only resort to shell.
I got stuck with a problem of getting the line with ith occurrence of a symbol, '>' in this case, from a file. I have 3 million '>' in my file. What I want to do is to split the file into 8 pieces that I have even number of '>'s in each file. (the file contains other things and I do not know where these '>' locate). The file is too large to get open in memory. I read sth about csplit but it split a file whenever it sees a '>'. So I am thinking maybe I want to get the line of the 10000th '>' and use it for csplit. Does anyone have better idea or how I can get the line? Any of your idea or hints will be highly appreciated. Ginger