Question: Mauve Contig Mover
gravatar for HG
7.0 years ago by
HG1.1k wrote:

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.



ADD COMMENTlink modified 6.0 years ago by Biostar ♦♦ 20 • written 7.0 years ago by HG1.1k
gravatar for cts
7.0 years ago by
cts1.6k wrote:

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 COMMENTlink written 7.0 years ago by cts1.6k

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

ADD REPLYlink written 7.0 years ago by HG1.1k

ps. upvotes are also appreciated :)

ADD REPLYlink written 7.0 years ago by cts1.6k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1277 users visited in the last hour