#!/bin/bash
#SBATCH -t 72:00:00
#SBATCH --nodes=1 --ntasks-per-node=2
#SBATCH --mem=64g
#SBATCH --export=NONE
#SBATCH --mail-user=mramsey@uri.edu
#SBATCH --mail-type=BEGIN,END,FAIL

#find and compresses all sam files to *.sam.gz for archiving. Samtools BAM conversion would be better but this is expedient.

find TnSeq_THP/ -type f -name "*.sam" -execdir gzip --best '{}' +


find TnSeq_THP/ -type f -name "*.sam" > sam_after.txt

