Hello, this seems to be an easy task really, but being completely new to the world of programming, I have problems with the following task: I have a huge file which has the following format:
track type= wiggle name09
variableStep chrom=chr1
34 5
36 7
54 8
variableStep chrom=chr2
33 4
35 2
78 7
this is text with the word random in it# this we need to remove
82 4
88 6
variableStep chrom=chr3
78 5
89 4
56 7
now what I would like as an out put is just
one file called 1 and containing only
34 5
36 7
54 8
a second file called 2
33 4
35 2
78 7
82 4
88 6
a third file
78 5
89 4
56 7
It would be great to get some help on this... If any knows how to do it in R... that would be even better