Mauve Contig Mover
1
0
Entering edit mode
11.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

• 3.2k views
ADD COMMENT
0
Entering edit mode
11.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

ADD COMMENT
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 .....

ADD REPLY
1
Entering edit mode

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

ps. upvotes are also appreciated :)

ADD REPLY

Login before adding your answer.

Traffic: 2476 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6