01-09-2009
The output Needed
After Matching <ServerCluster> tag i want to get the Server Clone Id's ie.
<Server CloneID=> and i want to change Load the Balance weight
Regards
Naresh
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I know how to use awk to search some expressions like five consecutive numbers, , this is easy.
However, how do I make awk print the pattern that is been matched?
For example:
input: usa,canada99292,japan222,france59664,egypt223
output:99292,59664 (6 Replies)
Discussion started by: grossgermany
6 Replies
2. Shell Programming and Scripting
Hi, I have 2 files that I have modified to basically match each other, however I want to determine what (if any) line in file 1 does not exist in file 2. I need to match column $1 and $2 as a single string in file1 to $1 and $2 in file2 as these two columns create a match.
I'm stuck in an AWK... (9 Replies)
Discussion started by: right_coaster
9 Replies
3. Shell Programming and Scripting
I have a pattern
username:x:32005:32006::/usr/local/user:/bin/bash
I need to match the line containing username and replace /bin/bash with /usr/local/my/bin/noshell
So it becomes
username:x:32005:32006::/usr/local/user:/usr/local/my/bin/noshell (7 Replies)
Discussion started by: anilcliff
7 Replies
4. Shell Programming and Scripting
i need to search for a pattern from a big file and print everything expect the next 6 lines from where the pattern match was made. (8 Replies)
Discussion started by: chidori
8 Replies
5. Shell Programming and Scripting
Hello Guyz
I have been following this forum for a while and the solutions provided are super useful. I currently have a scenario where i need to search for a pattern and start searching by keeping the first pattern as a baseline
ABC
DEF
LMN
EFG
HIJ
LMN
OPQ
In the above text i need to... (8 Replies)
Discussion started by: RickCharles
8 Replies
6. UNIX for Dummies Questions & Answers
Hi experts , im new to Unix,AWK ,and im just not able to get this right.
I need to match for some patterns if it matches I need to print the next few words to it.. I have only three such conditions to match… But I need to print only those words that comes after satisfying the first condition..... (2 Replies)
Discussion started by: 100bees
2 Replies
7. Shell Programming and Scripting
I have an application(Minecraft Server) that generates a logfile live. Using Crontab and screen I send a 'list' command every minute.
Sample Log view:
2013-06-07 19:14:37 <Willrocksyea1> hello*
2013-06-07 19:14:41 <Gromden29> hey
2013-06-07 19:14:42 Gromden29 lost connection:... (1 Reply)
Discussion started by: gatekeeper258
1 Replies
8. Shell Programming and Scripting
Ive used this snippet of code on a solaris box thousands of times.
But it isnt working on the new linux box
sed -n '/interface LoopBack0/{N;/ ip address /p;}' *.conf
its driving me nuts !!
Is there something Im missing ? (7 Replies)
Discussion started by: popeye
7 Replies
9. Shell Programming and Scripting
Im using the command below , but thats not the output that i want. it only prints the odd and even numbers.
awk '{if(NR%2){print $0 > "1"}else{print $0 > "2"}}'
Im hoping for something like this
file1:
Text hi this is just a test
text1 text2 text3 text4 text5 text6
Text hi... (2 Replies)
Discussion started by: invinzin21
2 Replies
10. Shell Programming and Scripting
Hello Experts , require help . See below output:
File inputs
------------------------------------------
Server Host = mike
id rl images allocated last updated density
vimages expiration last read <------- STATUS ------->... (4 Replies)
Discussion started by: tigerhills
4 Replies
LEARN ABOUT DEBIAN
moosex::clone::meta::attribute::trait::clone
MooseX::Clone::Meta::Attribute::Trait::Clone(3pm) User Contributed Perl Documentation MooseX::Clone::Meta::Attribute::Trait::Clone(3pm)
NAME
MooseX::Clone::Meta::Attribute::Trait::Clone - The Moose::Meta::Attribute trait for deeply cloning attributes.
SYNOPSIS
# see MooseX::Clone
has foo => (
traits => [qw(Clone)],
isa => "Something",
);
$object->clone; # will recursively call $object->foo->clone and set the value properly
DESCRIPTION
This meta attribute trait provides a "clone_value" method, in the spirit of "get_value" and "set_value". This allows clone methods such as
the one in MooseX::Clone to make use of this per-attribute cloning behavior.
DERIVATION
Deriving this role for your own cloning purposes is encouraged.
This will allow your fine grained cloning semantics to interact with MooseX::Clone in the RightX way.
ATTRIBUTES
clone_only_objects
Whether or not Data::Visitor should be used to clone arbitrary structures. Objects found in these structures will be cloned using
clone_object_value.
If true then non object values will be copied over in shallow cloning semantics (shared reference).
Defaults to false (all reference will be cloned).
clone_visitor_config
A hash ref used to construct "clone_visitor". Defaults to the empty ref.
This can be used to alter the cloning behavior for non object values.
clone_visitor
The Data::Visitor::Callback object that will be used to clone.
It has an "object" handler that delegates to "clone_object_value" and sets "tied_as_objects" to true in order to deeply clone tied
structures while retaining magic.
Only used if "clone_only_objects" is false and the value of the attribute is not an object.
METHODS
clone_value $target, $proto, %args
Clones the value the attribute encapsulates from $proto into $target.
clone_value_data $value, %args
Does the actual cloning of the value data by delegating to a "clone" method on the object if any.
If the object does not support a "clone" method an error is thrown.
If the value is not an object then it will not be cloned.
In the future support for deep cloning of simple refs will be added too.
clone_object_value $object, %args
This is the actual workhorse of "clone_value_data".
clone_any_value $value, %args
Uses "clone_visitor" to clone all non object values.
Called from "clone_value_data" if the value is not an object and "clone_only_objects" is false.
perl v5.10.1 2010-01-01 MooseX::Clone::Meta::Attribute::Trait::Clone(3pm)