$ bedtools getfasta -fi <input FASTA> -bed <BED/GFF/VCF> -fo <output FASTA>
For example:
$ bedtools getfasta -fi hg19.fa -bed wzy.bed -fo out.fasta