Entering edit mode
5.2 years ago
kdc15
▴
40
Hi,
I would like to filter a .bed file by numbers in the last column:
chr1 0 14400 18
chr1 14400 19000 6
chr1 19000 567400 18
chr1 567400 567800 10
chr1 567800 713200 18
chr1 713200 713800 2
chr1 713800 714600 1
chr1 714600 715400 2
chr1 715400 724000 6
How can I create a new file with lines that only contain 1,2 and 18? like this:
chr1 0 14400 18
chr1 19000 567400 18
chr1 567800 713200 18
chr1 713200 713800 2
chr1 713800 714600 1
chr1 714600 715400 2
Would it involve using the awk command?
Many Thanks