09-15-2007
Awesome - thank you both very much.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok here is the deal, I have a command given to me by some systems guy who I cannot get ahold of on the weekend without paying him alot of money to help me. I need to get this done before Monday as I am just getting pummeled by DOS attacks. The comand given was....
netstat -ntu | awk '{print... (1 Reply)
Discussion started by: Hexabah
1 Replies
2. Shell Programming and Scripting
Hi All
I have a CSV file where 3rd and 4th fields are date and time
it's a session log file printing the date and time per session
Now, I want to create a statistics of how many sessions per date and Time
I managed a script for sessions per hour
Code:
#!/bin/bash
#This Shell Script... (3 Replies)
Discussion started by: The Owl
3 Replies
3. Shell Programming and Scripting
HI,
I have been racking my brain for a while on this..... was hoping one of the guru's could point me in the right direction....
Basically I have the following data in a file :
----
2009-01-01 10665 Begin 02:25:23
2009-01-02 10665 Begin 20:54:11
2009-01-03 10665 Begin 05:31:17... (4 Replies)
Discussion started by: mashy
4 Replies
4. UNIX for Dummies Questions & Answers
i have list of files:
Wang CVPR 09.pdf
Yaacob AFGR 99.pdf
Shi CVPR 04.pdf
.....
how can i sort with single line this directory so the output will be in the next format:
<year>\t<conference/journal>\t<author list> - t is tab
(its sort by the year)
example:
1999 CVIU ... (2 Replies)
Discussion started by: nirnir26
2 Replies
5. UNIX for Dummies Questions & Answers
i have list of files:
Wang De Wong CVPR 09.pdf
Yaacob AFGR 99 Second edition.pdf
Shimon CVPR 01.pdf
Den CCC 97 long one.pdf
Ronald De Bour CSPP 04.pdf
.....
how can i sort this directory so the output will be in the next format:
<year>\t<conference/journal>\t<author list> - t is tab
(its... (1 Reply)
Discussion started by: nirnir26
1 Replies
6. UNIX for Advanced & Expert Users
hi everyone, I am kind of new to this forum. I need help in sorting this data out accordingly, I am actually doing a traceroute application and wants my AS path displayed in front of my address like this;
192.168.1.1 AS28513 AS65534 AS5089 AS5089 .... till the last AS number and if possible... (1 Reply)
Discussion started by: sam127
1 Replies
7. Shell Programming and Scripting
Hi, I have posted related topic but as i continue the research I find more need to sort the data.
AS(2607:f278:4101:11:dead:beef:f00f:f), AS786 AS6453 AS7575 AS7922
AS(2607:f2e0:f:1db::16), AS786 AS3257 AS36252
AS786 AS3257 AS36252
AS(2607:f2f8:1700::2), AS786 AS6939 AS25795 ... (6 Replies)
Discussion started by: sam127
6 Replies
8. Shell Programming and Scripting
Hi all,
Does anyone can help me the following question? I would like to write an AWK script.
In the following input file, each number in "start" is paired with numbers in column "end".
No Start End
A 22,222,33,22,1233,3232,44 555,333,222,55,1235,3235,66... (7 Replies)
Discussion started by: phoeberunner
7 Replies
9. UNIX for Dummies Questions & Answers
Hi fellow linuxers
I have a quick question... I would like to sort the numbers in each line that are within a file, and I want to sort them so that the numbers in each line go from SMALLEST to HIGHEST. For example, my file looks like this:
6 4 2 3 1 5 7 8
15 16 11 13 12 14 20 18 19 17
24 26... (7 Replies)
Discussion started by: lucshi09
7 Replies
10. Shell Programming and Scripting
Hi, guys
I just wanted to sort the elements of an array ascendingly.
I know the following code does work well:
array=(13 435 8 23 100)
for i in {0..4}
do
j=$((i+1))
while ]
do
if } -le ${array} ]]
then :
else
min=${array}
${array}=${array}
${array}=$min
fi... (5 Replies)
Discussion started by: franksunnn
5 Replies
LEARN ABOUT DEBIAN
moosex::types::varianttable::declare
MooseX::Types::VariantTable::Declare(3pm) User Contributed Perl Documentation MooseX::Types::VariantTable::Declare(3pm)
NAME
MooseX::Types::VariantTable::Declare - Declarative sugar for MooseX::Types::VariantTable based methods.
SYNOPSIS
package Awesome;
use Moose;
variant_method dance => Item => sub {
# Item is the least derived type in the hierarchy,
# every other type subtypes it
# this is in effect a fallback
return "fallback";
};
# a more specific type
variant_method dance => Ballerina => sub {
my ( $self, $ballerina, @args ) = @_;
$ballerina; # a value that passed the TC named "Ballerina"
return "pretty!";
};
# also works with objects
variant_method dance => $type_object => sub { ... };
DESCRIPTION
This module provides declarative sugar for defining Moose::Meta::Method::VariantTable methods in your Moose classes and roles.
These methods have some semantics:
Declaration
The order of the declarations do not matter in most cases.
It is the type hierarchy that defines the order in which the constraints are checked and items dispatched.
However, in the case that two constraints without an explicit relationship between them (one is a subtype of the other) both accept the
same value, the one that was declared earlier will win. There is no way around this issue, so be careful what types you use especially when
mixing variants form many different sources.
Adding the same type to a variant table twice is an error.
Inheritence
When dispatching all of the subclass's variants will be tried before the superclass.
This allows shadowing of types from the superclass even using broader types.
Roles
... are currently broken.
Don't use variant table methods in a role, unless that's the only definition, because in the future variant table merging will happen at
role composition time in a role composition like way, so your code will not continue to work the same.
perl v5.10.1 2011-02-27 MooseX::Types::VariantTable::Declare(3pm)