Hello, Monks,
Do you mind me bothering you with another unix question? 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