Hi I have a format that looks like this:
#TailType TwoSided
#Scale to target True
#Target Intensity 100
#Intensities PM/MM
#Treatment CEL ./G.CEL
#Control CEL ./F.CEL
chr1 16 0
chr1 24 0
chr1 32 0.187188
chr1 40 0.14595
chr1 48 0.569928
chr1 56 1.05253
chr1 64 0.773825
chr1 72 0
chr1 80 0.0284669
What I want to do is delete all rows with # then have it so it looks like this:
chr1 16 24 0
chr1 24 32 0
chr1 32 40 0.187188
chr1 40 48 0.14595
chr1 48 56 0.569928
chr1 56 64 1.05253
chr1 64 72 0.773825
chr1 72 80 0
chr1 80 etc. 0.0284669
The file is tab deliminted.
It would be best if this can be written in Perl but awk is fine too.