Sponsored Content
Full Discussion: Compare Array results
Top Forums Shell Programming and Scripting Compare Array results Post 302262090 by yoavbe on Wednesday 26th of November 2008 10:14:25 AM
Old 11-26-2008
Compare Array

Hi joeyg,

The values are not stored in a file, they are stored inside an Array.
I need to compare the arraies values , and create new array based on the unmached values.

Thank Again
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Results of command execution into array

Hi Can anybody tell me how can I dump the results of execution of a command into array form? For example, I want to execute: and put each part of the result in an array element: Thanks (2 Replies)
Discussion started by: alirezan
2 Replies

2. Shell Programming and Scripting

variable getting results from a log file; compare it in an IF cycle

Hi All I am going crazy trying to resolve this easy task.... I have a log file that is created by xcode; and it contains the results of a build (either success or fail); what i am trying to achieve here is to get the result from the log, and check if is a pass or fail in an IF statement, so... (3 Replies)
Discussion started by: newbiez
3 Replies

3. Shell Programming and Scripting

Shell script compare all parameters in two files and display results

Hi , I am not familiar with shell programming. I have a requirement like i have two files .I need to compare the two files by comparing each parameter and i should produce 2 outputs. 1)i have around 35 parameters say i have one parameter name called db_name=dcap in one file and... (7 Replies)
Discussion started by: muraliinfy04
7 Replies

4. Shell Programming and Scripting

Adding results of a find to an array

I'm trying to add the paths of all the xml files in certain directories to an array. I want to use the array later in my code. Anyway, for some reason this isn't working. Any help would be appreciated. Path_Counter=0 for result in "find * -name '*.xml'"; do XmlPath="$result" echo... (2 Replies)
Discussion started by: Fly_Moe
2 Replies

5. Shell Programming and Scripting

compare two value in array - Perl

Hi, I just wondering if I want to compare previous value to next value if it same count + 1 if not doesn't count how do we compare in Perl? Thank (2 Replies)
Discussion started by: guidely
2 Replies

6. Shell Programming and Scripting

compare two array

Hi firnds, I am having two arrays eg. @a=qw(1 2 3 4) and @b=qw(1 3 6 9) Now, I want to compare two arrays on first index of both arrays and if they matched, it should output remaining indexes Pseudo-code if ($a == $b) { print "remaining indexes";} How can i do this using perl? (1 Reply)
Discussion started by: Renesh
1 Replies

7. Shell Programming and Scripting

Compare file to array, replace with corresponding second array

ok, so here is the issue, I have 2 arrays. I need to be able to create a loop that will find ${ARRAY1 in the text doc, and replace it with ${ARRAY2 then write the results. I already have that working. The problem is, I need it to do that same result across however many items are in the 2... (2 Replies)
Discussion started by: gentlefury
2 Replies

8. Shell Programming and Scripting

Storing the SQL results in array variables

Requirement 1) I need to execute 15 SQL queries in oracle through linux script. All these query results needs to be stored in array variables. Requirement 2) And these 15 queries needs to be executed in parallel. Requirement 3) Once all the queries executed then the shell script should... (3 Replies)
Discussion started by: Niranjancse
3 Replies

9. Shell Programming and Scripting

Append awk results into file or array

for a in {1..100} do awk '{ sum+=$a} END {print sum}' a=$a file1 > file2 done I know I will get only one number if following the code above, how can I get 100 sum numbers in file2? (2 Replies)
Discussion started by: wanliushao
2 Replies

10. Programming

Results Of A Variable Into An Array Using C Language

Can C add its results into an array like bash? For example using bash: cat /etc/passwd **truncated for space ** gdm:x:109:118:Gnome Display Manager:/var/lib/gdm:/bin/false mysql:x:110:122:MySQL Server,,,:/nonexistent:/bin/false statd:x:111:65534::/var/lib/nfs:/bin/false... (5 Replies)
Discussion started by: metallica1973
5 Replies
MakeMethods::Docs::Catalog(3pm) 			User Contributed Perl Documentation			   MakeMethods::Docs::Catalog(3pm)

NAME
Class::MakeMethods::Docs::Catalog - List of Makable Method Types DESCRIPTION
This document lists the various subclasses of Class::MakeMethods included in this distribution, and the method types each one provides. See the documentation for each implementation for more details about the features it provides. For each class, a parenthetical comment indicates whether the methods it generates are applicable to individual blessed objects (Instances), to class data (Global), or both (Any) =head2 Scoping The final part of the name of a method-generating subclass typically indicates the scope or applicability of the methods it generates Hash For object instances based on blessed hashes with named values. Array For object instances based on blessed arrays with positional values. Scalar For object instances based on blessed scalars with a single value. InsideOut For any object instance regardless of underlying data type. Ref For any object instance regardless of underlying data type. Inheritable For data which can be set at the class, subclass, or instance level. Class For class data shared by all instances but different for each subclass ClassVar For class data shared by all instances but different for each subclass ClassInherit For class data shared by all instances but different for each subclass Global For global data shared by a class and all its instances and subclasses PackageVar For global data shared by a class and all its instances and subclasses Universal # General method types that are widely applicable Summary Charts This table shows which scopes are available in each generator family: SCOPING Basic Standard Evaled Composite Template Hash + + + + + Array + + + + Scalar + InsideOut + Ref + Inheritable + + + Class + ClassVar + ClassInherit + Global + + + + PackageVar + Universal + + This table shows which types of methods are typically available in each generator family: METHOD Basic Standard Evaled Composite Template new + + + + scalar + + + + string + string_index + number + boolean + boolean_index + bits + array + + + + struct + hash + + + + hash_of_arrays + tiedhash + object + + + instance + array_of_objects + code + code_or_scalar + BASIC CLASSES
Basic::Hash (Instances) Methods for objects based on blessed hashes. See Class::MakeMethods::Basic::Hash for details. o new: create and copy instances o scalar: get and set scalar values in each instance o array: get and set values stored in an array refered to in each instance o hash: get and set values in a hash refered to in each instance Basic::Array (Instances) Methods for manipulating positional values in arrays. See Class::MakeMethods::Basic::Array for details. o new: create and copy instances o scalar: get and set scalar values in each instance o array: get and set values stored in an array refered to in each instance o hash: get and set values in a hash refered to in each instance Basic::Global (Global) Global methods are not instance-dependent; calling them by class name or from any instance or subclass will consistently access the same value. See Class::MakeMethods::Basic::Global for details. o scalar: get and set a global scalar value o array: get and set values in a global array o hash: get and set values in a global hash STANDARD CLASSES
Standard::Hash (Instances) Methods for objects based on blessed hashes. See Class::MakeMethods::Standard::Hash for details. o new: create and copy instances o scalar: get and set scalar values in each instance o array: get and set values stored in an array refered to in each instance o hash: get and set values in a hash refered to in each instance o object: access an object refered to by each instance Standard::Array (Instances) Methods for manipulating positional values in arrays. See Class::MakeMethods::Standard::Array for details. o new: create and copy instances o scalar: get and set scalar values in each instance o array: get and set values stored in an array refered to in each instance o hash: get and set values in a hash refered to in each instance o object: access an object refered to by each instance Standard::Global (Global) Methods for manipulating global data. See Class::MakeMethods::Standard::Global for details. o scalar: get and set global scalar o array: get and set values stored in a global array o hash: get and set values in a global hash o object: global access to an object ref Standard::Inheritable (Any) Methods for manipulating data which may be overridden per class or instance. Uses external data storage, so it works with objects of any underlying data type. See Class::MakeMethods::Standard::Inheritable for details. o scalar: get and set scalar values for each instance or class COMPOSITE CLASSES
Composite::Hash (Instances) Methods for objects based on blessed hashes. See Class::MakeMethods::Composite::Hash for details. o new: create and copy instances o scalar: get and set scalar values in each instance o array: get and set values stored in an array refered to in each instance o hash: get and set values in a hash refered to in each instance o object: access an object refered to by each instance Composite::Array (Instances) Methods for manipulating positional values in arrays. See Class::MakeMethods::Composite::Array for details. o new: create and copy instances o scalar: get and set scalar values in each instance o array: get and set values stored in an array refered to in each instance o hash: get and set values in a hash refered to in each instance o object: access an object refered to by each instance Composite::Global (Global) Methods for manipulating global data. See Class::MakeMethods::Composite::Global for details. o scalar: get and set global scalar o array: get and set values stored in a global array o hash: get and set values in a global hash o object: global access to an object ref Composite::Inheritable (Any) Methods for manipulating data which may be overridden per class or instance. Uses external data storage, so it works with objects of any underlying data type. See Class::MakeMethods::Composite::Inheritable for details. o scalar: get and set scalar values for each instance or class o hook: create a subroutine intended to have operations added to it Composite::Universal (Any) Methods for padding pre- and post-conditions to any class. See Class::MakeMethods::Composite::Universal for details. o patch: add pre and post operations to an existing subroutine TEMPLATE CLASSES
Template::Universal (Any) Meta-methods for any type of object. See Class::MakeMethods::Template::Universal. o no_op - a method with an empty body o croak - a method which will croak if called o method_init - calls other methods from a list of method name => argument pairs o forward_methods - delegates to an object provided by another method Template::Ref (Any Instance) Methods for deep copies and comparisons. See Class::MakeMethods::Template::Ref. o clone: make a deep copy of an object instance o prototype: make new objects by cloning a typical instance o compare: compare one object to another Template::Generic (Abstract) The remaining subclasses inherit a similar collection of templates from Template::Generic, and provide a different type of scoping or binding for the functionality defined by the Generic template. See Class::MakeMethods::Template::Generic for details. Template::Hash (Instances) The most commonly used implementation, for objects based on blessed hashes. See Class::MakeMethods::Template::Hash. o new: create and copy instances o scalar: get and set scalar values in each instance o string: get and set string values in each instance o number: get and set numeric values in each instance o boolean: get and set boolean values in each instance o bits: get and set boolean values stored in a single value in each instance o array: get and set values stored in an array refered to in each instance o struct - methods for acccessing values which are stored by position in an array o hash: get and set values in a hash refered to in each instance o tiedhash: get and set values in a tied hash refered to in each instance o hash_of_arrays: for references to hashes of arrays contained in each instance o object: set or access a reference to an object contained in each instance o array_of_objects: manipulate an array of object references within in each instance o code: set or call a function reference contained in each instance Template::Array (Instances) Methods for manipulating positional values in arrays. See Class::MakeMethods::Template::Array. o new: create and copy array instances o scalar: get and set scalar values in a given array position o string: get and set string values in a given array position o number: get and set numeric values in a given array position o boolean: get and set boolean values in a given array position o builtin_isa: generates a wrapper around some builtin function, cacheing the results in the object and providing a by-name interface Template::Scalar (Instances) For objects based on blessed scalars. See Class::MakeMethods::Template::Scalar. Note that these objects can generally only have one value accessor method, as all such accessors will refer to the same value. o new: create and copy instances o scalar: get and set scalar values in each instance o string: get and set a string value in each instance o number: get and set a numeric value in each instance o boolean: get and set a boolean value in each instance o bits: get and set boolean values stored in a single value in each instance o code: set or call a function reference contained in each instance Template::InsideOut (Instances) Stores values for objects in an external location hashed by identity. See Class::MakeMethods::Template::InsideOut. Note that while the below constructor creates and returns scalar references, accessor methods can be created with this implementation for use with any type of object. o new: create and copy instances o scalar: get and set scalar values associated with each instance o string: get and set string values associated with each instance o string_index: get and set string values associated with each instance, and maintain an index of instances by value o number: get and set numeric values associated with each instance o boolean: get and set boolean values associated with each instance o boolean_index: get and set boolean values associated with each instance, and maintain a list of items which have the flag set o bits: get and set boolean values stored in a single value associated with each instance o array: get and set values stored in an array associated with each instance o hash: get and set values in a hash associated with each instance o code: set or call a function reference associated with each instance Template::Global (Global) Global methods are not instance-dependent; calling them by class name or from any instance will consistently access the same value. See Class::MakeMethods::Template::Static. o scalar: get and set a global scalar value o string: get and set a global string value o number: get and set a global number value o boolean: get and set a global boolean value o array: get and set values in a global array o hash: get and set values in a global hash o tiedhash: get and set values in a global tied hash o hash_of_arrays: get and set values in a global hash of arrays o object: set and access a global reference to an object o instance: set and access a global reference to an object of the declaring class o code: set and access a global reference to a subroutine. Template::PackageVar (Global) PackageVar methods access a variable in the declaring package. Thus, they have the same effect as Static methods, while keeping their value accessible via the symbol table. See Class::MakeMethods::Template::PackageVar. o scalar: get and set a global scalar value o string: get and set a global string value o number: get and set a global number value o boolean: get and set a global boolean value o array: get and set values in a global array o hash: get and set values in a global hash Template::Class (Global) Class methods are similar to Static methods, except that each subclass and its instances will access a distinct value. See Class::MakeMethods::Template::Class. o scalar: get and set a class-specific scalar value o string: get and set a class-specific string value o number: get and set a class-specific number value o boolean: get and set a class-specific boolean value o array: get and set values in a class-specific array o hash: get and set values in a class-specific hash Template::ClassVar (Global) ClassVar methods access a variable in the package on which they are called. Thus, they have the same effect as Class methods, while keeping their value accessible via the symbol table, like PackageVar. See Class::MakeMethods::Template::ClassVar. o scalar: get and set a class-specific scalar value o string: get and set a class-specific string value o number: get and set a class-specific number value o boolean: get and set a class-specific boolean value o array: get and set values in a class-specific array o hash: get and set values in a class-specific hash Template::ClassInherit (Global) ClassInherit methods are an intermediate point between Static and Class methods; subclasses inherit their superclass's value until they set their own value, after which they become distinct. See Class::MakeMethods::Template::ClassInherit. o scalar: get and set an inheritable class-specific scalar value o string: get and set an inheritable class-specific string value o number: get and set an inheritable class-specific number value o boolean: get and set an inheritable class-specific boolean value o array: get and set values in an inheritable class-specific array o hash: get and set values in an inheritable class-specific hash Template::Inheritable (Any) Methods for manipulating data which may be overridden per class or instance. Uses external data storage, so it works with objects of any underlying data type. See Class::MakeMethods::Template::Inheritable for details. o scalar: get and set scalar values for each instance or class o string: get and set string values for each instance or class o number: get and set numeric values for each instance or class o boolean: get and set boolean values for each instance or class o hash: get and set values in a hash refered to in each instance SEE ALSO
See Class::MakeMethods for general information about this distribution. perl v5.10.1 2004-09-06 MakeMethods::Docs::Catalog(3pm)
All times are GMT -4. The time now is 04:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy