Sponsored Content
Operating Systems AIX Help with data collection please? Post 302257855 by joeyg on Thursday 13th of November 2008 08:00:09 AM
Old 11-13-2008
Hammer & Screwdriver grep to an awk might have done this

If you provided some examples, myself or someone else might have been able to show you (and everyone else - since that is the purpose of this Board) how you could solve.

grep "something" myfile > selected_file
awk 'commands here' selected_file

the 'commands here' would have
read through records
set counters for array elements
add totals for array elements
print out final result

That is what I was referring to in my previous post. It is always better to include current file samples and desired output.
 

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Collection of Unix Links

Hi, Is there is a good collection of Links to Unix Related stuff? Regards, Kriss (1 Reply)
Discussion started by: Kriss
1 Replies

2. UNIX for Beginners Questions & Answers

Some % of Garbage Collection

I need to write a python script that will look at the local gc logs. 6 sys=0.00, real=0.06 secs] 2019-06-05T07:43:12.029-0500: 1072696.494: 2791209K->1995953K(2796544K)] 2803355K->1995953K(4164608K), , 3.0299555 secs] 2019-06-05T07:43:17.149-0500: 1072701.614: 3334321K->2008193K(4167680K),... (1 Reply)
Discussion started by: xgringo
1 Replies
Parse::CPAN::Meta(3pm)					 Perl Programmers Reference Guide				    Parse::CPAN::Meta(3pm)

NAME
Parse::CPAN::Meta - Parse META.yml and other similar CPAN metadata files SYNOPSIS
############################################# # In your file --- rootproperty: blah section: one: two three: four Foo: Bar empty: ~ ############################################# # In your program use Parse::CPAN::Meta; # Create a YAML file my @yaml = Parse::CPAN::Meta::LoadFile( 'Meta.yml' ); # Reading properties my $root = $yaml[0]->{rootproperty}; my $one = $yaml[0]->{section}->{one}; my $Foo = $yaml[0]->{section}->{Foo}; DESCRIPTION
Parse::CPAN::Meta is a parser for META.yml files, based on the parser half of YAML::Tiny. It supports a basic subset of the full YAML specification, enough to implement parsing of typical META.yml files, and other similarly simple YAML files. If you need something with more power, move up to a full YAML parser such as YAML, YAML::Syck or YAML::LibYAML. Parse::CPAN::Meta provides a very simply API of only two functions, based on the YAML functions of the same name. Wherever possible, identical calling semantics are used. All error reporting is done with exceptions (die'ing). FUNCTIONS
For maintenance clarity, no functions are exported. Load my @yaml = Load( $string ); Parses a string containing a valid YAML stream into a list of Perl data structures. LoadFile my @yaml = LoadFile( 'META.yml' ); Reads the YAML stream from a file instead of a string. SUPPORT
Bugs should be reported via the CPAN bug tracker at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Parse-CPAN-Meta <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Parse-CPAN-Meta> AUTHOR
Adam Kennedy <adamk@cpan.org> SEE ALSO
YAML, YAML::Syck, Config::Tiny, CSS::Tiny, <http://use.perl.org/~Alias/journal/29427>, <http://ali.as/> COPYRIGHT
Copyright 2006 - 2009 Adam Kennedy. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.12.1 2010-04-26 Parse::CPAN::Meta(3pm)
All times are GMT -4. The time now is 03:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy