Variation: If you have a lot of regions which you have in a file listed line by line e.g.: myregions.txt
chr1:10-20
chr10:12-13
chr20:14-15
you could use the following:
for R in `cat myregions.txt`
do
samtools view -b -o "${R//[\:\-]/_}.bam" input.bam "${R}"
done