Skip to content

Instantly share code, notes, and snippets.

@telatin
Created March 2, 2018 17:22
Show Gist options
  • Save telatin/ed49059220bbf1ad7ba93d73713409e5 to your computer and use it in GitHub Desktop.
Save telatin/ed49059220bbf1ad7ba93d73713409e5 to your computer and use it in GitHub Desktop.
#!/bin/bash
# A script listing all .sam files in a directory, proposing the name
# for their respective .bam file.
for File in *.sam
do
echo "SAM File: $File"
echo "Possible BAM file: ${File/.sam/.bam}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment