I have a bed file with the co-ordinates includes chr start and end columns.
#chr start end
chrM 1 1
chrM 2 2
chrM 3 3
chrM 4 4
chrM 5 5
chrM 7 7
chrM 8 8
chrM 9 9
chrM 10 10
chrM 11 11
chrM 12 12
chrM 13 13
chrM 14 14
here there are 2 region are present i want to get output like
#chr start end
chrM 1 5
chrM 7 14
which tool should i use to perform this after this i need to find its location into the mitochorial genome