Mauve Contig Mover
1
0
Entering edit mode
9.4 years ago
HG ★ 1.2k

Dear all, I am using mauve contig mover through command line .I have a question: once i am running mauve contig mover i am getting n number iteration for each run and for each run mauve generate one folder name alignment1, alignment2.....alignmentN . Now i want only final iteration result, from command line after running mauve how i will automatically go to that folder and pass the result to another folder in different location.Kindly help me out.

Thank you.

Regards

Hiren

• 2.8k views
0
Entering edit mode
9.4 years ago
cts ★ 1.7k

Assuming your in the directory containing the files alignment1...alignmentN the following command can be used to find the newest folder and copy whatever contents you want from it to another location.

newest=$(ls -1 -t | head -n 1); cp$newest/<FILES TO COPY> <DEST_FOLDER>


NOTE: this assumes that there is no other file/folder in the directory that was modified after the mauve command, so it's not foolproof

0
Entering edit mode

CTS Thank you so much ..........you are really great .....can you please suggest me some shell script good tutorial or book .....

1
Entering edit mode

http://superuser.com/questions/25486/bash-shell-tutorials

ps. upvotes are also appreciated :)