Hi !

I have many .bam that I want to get their .bai using samtools in the terminal.

I tried the following command :

    samtools index *.bam

However, I did not get any .bai file.

Regards
using GNU parallel:

    parallel  samtools index ::: *.bam