Entering edit mode
13.6 years ago
Phuong
▴
10
Hi
does anybody know how to remove lines that are not in the format
chr 5759 6184 ORF5759 1 -
I have bed file that contain
chr 5759 6184 ORF5759 1 -
sirna some number
How can remove all the lines that does not follow the format so I can upload file to ucsc. Thank you so much appreciate it
This is not clear. What do the badly formatted lines look like? How did you come by this badly formatted BED file? What do you mean by "sirna some number"?
@phuong: could you be little descriptive in your question, it will help in answering it. SECONDLY, WHO SO EVER DOWN VOTED this question should have given a chance to phuong to ammend her question or a chance to describe it from a more clear perspective..... I am completely against of down voting questions... unless they are exact copies..
it appears that "sirna some number" is the bad line.
Questions are down-voted when unclear or not useful - as it is explained in the mouse-over tooltip. This one was unclear. I am in fact helping out.
If "sirna some number" is the problem you can remove those with grep -v "sirna".