Entering edit mode
4.5 years ago
AbdelAbdel
▴
30
Hello, in short, I have folders and in each folder there is a file 'call < configs.fasta > and I wanted to get how I can rename the files with the same folder name. I've tried a for loop but it doesn't work.
for i in *; do mv /*/contigs.fasta $i.fasta; done
Thank you for helping me
A small educational note: I added (code) markup to your post for increased readability. You can do this by selecting the text and clicking the 101010 button. When you compose or edit a post that button is in your toolbar, see image below:
I understand why you might mask out the path your working in but i'm afraid the cause of your issue is likely caused by what's 'under' the * .
otherwise you can add in a dummy folder but at least we can then see what you try to do.
All right, thank you very much for the information.