Would need the output as below.
First field will be repeating for the values.
Header value need to be pivoted as second field, and corresponding header values in the third field.
hi i have data extracted in the following format ranging around 300000 to 800000 records in a text file , the format is of network data .
No. Time Source Destination Protocol
1 1998-06-05 17:20:23.569905 HP_61:aa:c9 HP_61:aa:c9 ... (1 Reply)
I have a csv file that I need to extract some data from depending on another field after reading info from another text file.
The text file would say have 592560 in it.
The csv file may have some data like so
Field 1 Field2 Field3 Field4 Field5 Field6
20009756 1 ... (9 Replies)
Hi,
I have two files, one of which I would like to sort based on the order of the data in the second. I would like to do this using a simple unix statement.
My two files as follows:
File 1:
12345 1 2 2 2 0 0
12349 0 0 2 2 1 2
12350 1 2 1 2 2 2
.
.
.
File2:
12350... (3 Replies)
Dear List,
I have a file of csv data which has a different line per compliance check per host. I do not want any omissions from this csv data file which looks like this:
date,hostname,status,color,check
02-03-2012,COMP1,FAIL,Yellow,auth_pass_change... (3 Replies)
Hello Unix guys,
I have the following 4 column data, which is a output of db2 select query:
Need to pivot the data.
sample Input:
Year Month Country Counts
2012 Aug Canada 114
2012 Aug USA 92
2012 Aug Mexico 3
2012 Aug ... (3 Replies)
Hi Experts,
I have a data with multiple entry , I want to filter PKG= & the last column "00060110" or "00088150" in the output
file:
###############################################################################################
PKG= P8SDB :: VGS = vgP8SOra vgP8SDB1 vgP8S001... (5 Replies)
Hello All,
Thanks for taking time to read through the thread and for providing any possible solution.
I am trying to pivot a comma separated field in a pipe delimited file. Data looks something like this:
Field1|Field2
123|345,567,789
234|563,560
345|975,098,985,397,984
456|736
Desired... (8 Replies)
Hi Friends,
I need to pivot data .
Below is my source data
Source Data
PK PRTY_KEY_ID PRTY_SUB_KEY_ID KEY_COL_VAL_TX MTCH_CNFDNCE_RATE
007824822 428844791 1 #Jemmy#Pom#600 Kearsarge Way 100
007824822 429283974 1 #Jemmy#Pom#120 Broadway 100
007824822 429739103 1 #Jemmy#Pom#600 Keae Way#757... (0 Replies)
Hi,
So awk is driving me crazy on this one. I have searched everywhere and read man, docs and every related post Google can find and still no luck. The actual files I need to run this on are sensitive in nature, but it is the same thing as if I needed to calculate weighted grades for multiple... (15 Replies)
Discussion started by: cotilloe
15 Replies
LEARN ABOUT OSX
ppi::statement::include
PPI::Statement::Include(3) User Contributed Perl Documentation PPI::Statement::Include(3)NAME
PPI::Statement::Include - Statements that include other code
SYNOPSIS
# The following are all includes
use 5.006;
use strict;
use My::Module;
use constant FOO => 'Foo';
require Foo::Bar;
require "Foo/Bar.pm";
require $foo if 1;
no strict 'refs';
INHERITANCE
PPI::Statement::Include
isa PPI::Statement
isa PPI::Node
isa PPI::Element
DESCRIPTION
Despite its name, the "PPI::Statement::Include" class covers a number of different types of statement that cover all statements starting
with "use", "no" and "require".
But basically, they cover three situations.
Firstly, a dependency on a particular version of perl (for which the "version" method returns true), a pragma (for which the "pragma"
method returns true, or the loading (and unloading via no) of modules.
METHODS
"PPI::Statement::Include" has a number of methods in addition to the standard PPI::Statement, PPI::Node and PPI::Element methods.
type
The "type" method returns the general type of statement ('use', 'no' or 'require').
Returns the type as a string, or "undef" if the type cannot be detected.
module
The "module" method returns the module name specified in any include statement. This "includes" pragma names, because pragma are
implemented as modules. (And lets face it, the definition of a pragma can be fuzzy at the best of times in any case)
This covers all of these...
use strict;
use My::Module;
no strict;
require My::Module;
...but does not cover any of these...
use 5.006;
require 5.005;
require "explicit/file/name.pl";
Returns the module name as a string, or "undef" if the include does not specify a module name.
module_version
The "module_version" method returns the minimum version of the module required by the statement, if there is one.
pragma
The "pragma" method checks for an include statement's use as a pragma, and returns it if so.
Or at least, it claims to. In practice it's a lot harder to say exactly what is or isn't a pragma, because the definition is fuzzy.
The "intent" of a pragma is to modify the way in which the parser works. This is done though the use of modules that do various types of
internals magic.
For now, PPI assumes that any "module name" that is only a set of lowercase letters (and perhaps numbers, like "use utf8;"). This behaviour
is expected to change, most likely to something that knows the specific names of the various "pragmas".
Returns the name of the pragma, or false ('') if the include is not a pragma.
version
The "version" method checks for an include statement that introduces a dependency on the version of "perl" the code is compatible with.
This covers two specific statements.
use 5.006;
require 5.006;
Currently the version is returned as a string, although in future the version may be returned as a version object. If you want a numeric
representation, use "version_literal()". Returns false if the statement is not a version dependency.
version_literal
The "version_literal" method has the same behavior as "version()", but the version is returned as a numeric literal. Returns false if the
statement is not a version dependency.
The "arguments" method gives you the rest of the statement after the the module/pragma and module version, i.e. the stuff that will be used
to construct what gets passed to the module's "import()" subroutine. This does include the comma, etc. operators, but doesn't include non-
significant direct children or any final semicolon.
TO DO
- Write specific unit tests for this package
SUPPORT
See the support section in the main module.
AUTHOR
Adam Kennedy <adamk@cpan.org>
COPYRIGHT
Copyright 2001 - 2011 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.16.2 2011-02-25 PPI::Statement::Include(3)