for file in /path/path/???????????_aa.fasta.aln.1; do name=$($file|sed 's/.1//g'), echo mv ${file} $sup ; done
The idea of this code is to change the ???????????_aa.fasta.aln.1
file name into ???????????_aa.fasta.aln
So I had the idea to change the $file
value by deleting the .1
and then storing it into the variable name
, then I just echo the ancient name $file
and the new name name
. Then I paste all the code generated.
But it does not work.
Does someone have an idea?