I am trying to run this code for step 1 and step 2 below, but I would like to pipe them so I don\'t have to write this intermediate file "${BAMFILE/.bam/_reverted
"${BAMFILE/.bam/_reverted