How to split Hmm databse (Pfam-A.hmm) into individual files?
A basic solution using GNU/BSD awk:
#!/bin/bash
while read -r id filename
do
echo mv "$filename" "$id".hmm
done < <(awk '$1 == "NAME" {print $2,FILENAME; nextfile}' hmm*)
A basic solution using GNU/BSD awk:
#!/bin/bash
while read -r id filename
do
echo mv "$filename" "$id".hmm
done < <(awk '$1 == "NAME" {print $2,FILENAME; nextfile}' hmm*)