thank you so much for kind help. it has worked to print the reads of required range. but can you plz kindly guid me in following aspects too:
1) I need this out put in separate file rather that it just get printed on terminal. how to get it in separate file??
2) this is example when i need to get reads with only one sequence range. what if i have large number of queries like this. i mean if i have one file with the ranges like:
;gnl|BGIA2|CA_chr1:429729-529840
gnl|BGIA2|CA_chr1:629729-726840
gnl|BGIA2|CA_chr1:729729-929840
gnl|BGIA2|CA_chr1:529729-729840
................ so on.........
then how to get all the reads with these coordinate references in separate output file????