I was reading about the different ways to run rsync. It looks like
connecting to an rsync deamon is very similar to connecting to an
rsync shell like ssh.
Are there situations where the deamon is superior to the ssh? Are
there situations where ssh is superior to the deamon?
Thanks,... (0 Replies)
Hey guys i need to take the MAC address in the format of
0x00255T08D433
and convert it to
00:25:5T:08:D4:33 (it goes :08: D4:33 with no space the forum is making it a big smiley)
for a script i am working on. I am Not quite sure where to start with this one any help would be... (4 Replies)
I have a file with over 500 MAC addresses. Each address is on a new line. However, the MACs do not have ":"
I need a script that will read the file, line by line and insert colons in the addresses and then print the results to a new file.
current.txt looks like this
111111111111
222222222222... (4 Replies)
I know you can remove trialing slashes using:
#echo "/tmp/one/two/three////" | sed "s,/$,,"
/tmp/one/two/three///
But I want to know how to make it remove all trialing flashes in the front, and in the start, so the end result is:
tmp/one/two/three
Anyone have any idea how to do this... (6 Replies)
Hi Forum.
I tried searching the forum but couldn't find a solution for my question.
I have the following data and would like to have a sed syntax to remove the leading zeroes from the 2nd field only:
Before:
2010-01-01|123|1|1000|2000|500|1500|600|700... (18 Replies)
Hi all,
I have 2 files. One contains only 1 column and other one contains 2 columns, let say 1_col.txt and 2_col.txt respectively. Here, I will try to explain with an example.
Input files :
1_col.txt 2_col.txt
a a b
x a c
p ... (5 Replies)
I want to print 4052 slashes using this C program.
#include <stdio.h>
void main()
{
int i;
for (i=0; i<4052; i++)
printf ("/");
}
When i compile this via gcc am getting this error :
http://gyazo.com/e0403e4789575d181d1695f9db3e6d6e.png
Can anyone point out what am doing wrong? (15 Replies)
Hi,
i was tried using the awk command for replacing '-' in the second column. but the below command replacing the entire file.
cat 1.txt |awk '{gsub(/-/,"")}1'
Input file
1,2,3,-4,5,6
1,-2,3,4,5,-6
1,2,3,4,5,6
1,-2,3,4,-5,6
Output file
1,2,3,-4,5,6
1,2,3,4,5,-6
1,2,3,4,5,6... (3 Replies)
Discussion started by: onesuri
3 Replies
LEARN ABOUT DEBIAN
ace::sequence::homol
Ace::Sequence::Homol(3pm) User Contributed Perl Documentation Ace::Sequence::Homol(3pm)NAME
Ace::Sequence::Homol - Temporary Sequence Homology Class
SYNOPSIS
# Get all similarity features from an Ace::Sequence
@homol = $seq->features('Similarity');
# sort by score
@sorted = sort { $a->score <=> $b->score } @homol;
# the last one has the highest score
$best = $sorted[$#sorted];
# fetch its associated Ace::Sequence::Homol
$homol = $best->target;
# print out the sequence name, DNA, start and end
print $homol->name,' ',$homol->start,'-',$homol->end,"
";
print $homol->asDNA;
DESCRIPTION
Ace::Sequence::Homol is a subclass of Ace::Object (not Ace::Sequence) which is specialized for returning information about a DNA or protein
homology. This is a temporary placeholder for a more sophisticated homology class which will include support for alignments.
OBJECT CREATION
You will not ordinarily create an Ace::Sequence::Homol object directly. Instead, objects will be created in response to an info() or
group() method call on a similarity feature in an Ace::Sequence::Feature object. If you wish to create an Ace::Sequence::Homol object
directly, please consult the source code for the new() method.
OBJECT METHODS
Most methods are inherited from Ace::Object. The following methods are also supported:
start()
$start = $homol->start;
Returns the start of the area that is similar to the Ace::Sequence::Feature from which his homology was derived. Coordinates are
relative to the target homology.
end()
$end = $homol->end;
Returns the end of the area that is similar to the Ace::Sequence::Feature from which his homology was derived. Coordinates are
relative to the target homology.
asString()
$label = $homol->asString;
Returns a human-readable identifier describing the nature of the feature. The format is:
$name/$start-$end
for example:
HUMGEN13/1-67
This method is also called automatically when the object is treated in a string context.
SEE ALSO
Ace, Ace::Object, Ace::Sequence,Ace::Sequence::FeatureList, Ace::Sequence::Feature, GFF
AUTHOR
Lincoln Stein <lstein@w3.org> with extensive help from Jean Thierry-Mieg <mieg@kaa.crbm.cnrs-mop.fr>
Copyright (c) 1999, Lincoln D. Stein
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See DISCLAIMER.txt for
disclaimers of warranty.
perl v5.14.2 2001-09-17 Ace::Sequence::Homol(3pm)