Last active
January 20, 2021 00:08
-
-
Save jottenlips/c39b33dc594381d12da608dad819b607 to your computer and use it in GitHub Desktop.
Script for Michael
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
lowercase_remove_dash () { | |
sed -e 's/-//g' $1 | tr '[:upper:]' '[:lower:]' | |
} | |
find . -maxdepth 1 -regex '\./.*\.fsa' | while read file; do printf "%s\n" $(lowercase_remove_dash $file) > $file; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sh dna_cleaning_script.sh