>> 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. 
> 
> This is more of a unix scripting question than a Mauve question. One way
> to do it would be to write a for loop in your shell (bash? csh? korn
> shell?) that counts down from a large number and exits the loop when it
> finds the alignmentN that exists. Typing "shell for loop" in your
> favorite search engine will get you some ideas. 
> 
> And there are surely other ways to solve the problem that don't involve
> for loops.


It might be easier to pipe together a few commands - I think this should do it, 
for example:

  ls -d alignment*  |  sort -k 1.10nr  |  head -1

This should print out the name of the highest numbered alignment directory, 
which you can then pipe to your next command.

Meg



------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Mauve-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mauve-users

Reply via email to