Entering edit mode
4.2 years ago
sankadinesh
▴
20
How to convert .fna.gz files to .fna in a folder?
I would also like to convert all .fna to .fasta.
Thanks in advance
How to convert .fna.gz files to .fna in a folder?
I would also like to convert all .fna to .fasta.
Thanks in advance
I hope this will work.
# Rename all *.fna to *.fasta
for f in *.fna; do
mv -- "$f" "${f%.fna}.fasta"
done
Or you can try
find . -name '*.fna' -exec rename 's/\.fna$/.fasta/' \{} \;
Go to the directory and follow the command..:)
find . -name ".fna.gz" |xargs -n 1 gunzip
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
You can do it in two simple steps: