annotate tools/emboss_5/emboss_multiple_outputfile_wrapper.pl @ 0:9071e359b9a3

Uploaded
author xuebing
date Fri, 09 Mar 2012 19:37:19 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
1 #! /usr/bin/perl -w
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
2 use strict;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
3
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
4 my $cmd_string = join (" ",@ARGV);
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
5 my $results = `$cmd_string`;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
6 my @files = split("\n",$results);
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
7 foreach my $thisLine (@files)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
8 {
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
9 if ($thisLine =~ /Created /)
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
10 {
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
11 $thisLine =~ /[\w|\.]+$/;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
12 $thisLine =$&;
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
13 print "outfile: $thisLine\n";
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
14 }
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
15 else
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
16 {
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
17 print $thisLine,"\n";
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
18 }
9071e359b9a3 Uploaded
xuebing
parents:
diff changeset
19 }