As you know we can capture paragraph information using -ip command with grep option in AIX and other OS. Is there anything similar to this command in linux to capture paragraph infroamtion?
coammnd:
Thanks
---------- Post updated at 07:38 PM ---------- Previous update was at 01:45 PM ----------
Hi,
Any clue on this please? Appreciate your quick response on this.
Thanks
Jayaprakash.
Last edited by zaxxon; 03-16-2011 at 09:47 AM..
Reason: code tags
I am doing "ps -f" to see my process.
but I get lines that one of it represents the ps command itself.
I want to grep it out using -v flag, but than I get another process that belongs to the GREP itself :
I would like to exclude
# ps -f
UID PID PPID C STIME TTY TIME CMD... (2 Replies)
i want to search in the current directory all the files that contain one word for example "hello"
i want to achieve it with the grep command but not with the grep * (2 Replies)
Hi All
I am trying to run a script in linux wherein i have a command like this
grep ^prmAttunityUser= djpHewr2XFMAttunitySetup_ae1_tmp
djpHewr2XFMAttunitySetup_ae1_tmp is a temporary file in which the user value is stored but this command in the script returns me balnk value whereas it has a... (4 Replies)
Hi All
I have a file containing following records:
$HEW_TGT_DB2_USER=hbme_bi2
$prmAttunityUser=ais
$DS_USER=hbme_bi2
$prmStgUser=hbme_bi2
$prmuser=hbme_bi2
$prmStgPass=hbme_bi2
$prmpwd=hbme_bi2
$prmAttunityUser=ais
Say suppose the name of the file is test4.txt
When i fire this... (5 Replies)
Hello,
I am running below command as root user
#nodetool cfstats tests | grep "Memtable switch count"
Memtable switch count: 12
Where as when I try to run same command as another user it gives different result.
#su -l zabbix -s /bin/bash -c "nodetool cfstats tests | grep "Memtable switch... (10 Replies)
Hello,
I am on a Mac and trying to clean up some monthly files with a very simple SED:
sed '3,10d;/<ACROSS>/,$d' input.txt > output.txt
(from the input, delete lines 3 - 10; then delete from the line containing <ACROSS> to the end of the file)
then output to output.txt
Even when I try... (2 Replies)
I have a file xyz with the following content
PPPL 0123
PPPL 0006
POFT 0923
POFT 1111
WENT 2323
SEND 2345
I also have another file named MasterFile where it contains the above mentioned data million times with different digits at the end for example some times it contains SEND 9999 or WENT... (4 Replies)
Discussion started by: knijjar
4 Replies
LEARN ABOUT DEBIAN
pod::elemental::selectors
Pod::Elemental::Selectors(3pm) User Contributed Perl Documentation Pod::Elemental::Selectors(3pm)NAME
Pod::Elemental::Selectors - predicates for selecting elements
VERSION
version 0.102362
OVERVIEW
Pod::Elemental::Selectors provides a number of routines to check for Pod::Elemental paragraphs with given qualities.
SELECTORS
Selectors are predicates: they examine paragraphs and return either true or false. All the selectors have (by default) names like:
"s_whatever". They expect zero or more parameters to affect the selection. If these parameters are given, but no paragraph, a callback
will be returned that will expect a paragraph. If a paragraph is given, the selector will return immediately.
For example, the "s_command" selector expects a parameter that can be the name of the command desired. Both of the following uses are
valid:
# create and use a callback:
my $selector = s_command('head1');
my @headers = grep { $selector->($_) } @paragraphs;
# just check a paragraph right now:
if ( s_command('head1', $paragraph) ) { ... }
The selectors can be imported individually or as the "-all" group, and can be renamed with Sub::Exporter features. (Selectors cannot yet
be curried by Sub::Exporter.)
s_blank
my $callback = s_blank;
if( s_blank($para) ) { ... }
"s_blank" tests whether a paragraph is a Generic::Blank element.
s_flat
my $callback = s_flat;
if( s_flat($para) ) { ... }
"s_flat" tests whether a paragraph does Pod::Elemental::Flat -- in other words, is content-only.
s_node
my $callback = s_node;
if( s_node($para) ) { ... }
"s_node" tests whether a paragraph does Pod::Elemental::Node -- in other words, whether it may have children.
s_command
my $callback = s_command;
my $callback = s_command( $command_name);
my $callback = s_command(@command_names);
if( s_command(undef, $para) ) { ... }
if( s_command( $command_name, $para) ) { ... }
if( s_command(@command_names, $para) ) { ... }
"s_command" tests whether a paragraph does Pod::Elemental::Command. If a command name (or a reference to an array of command names) is
given, the tested paragraph's command must match one of the given command names.
AUTHOR
Ricardo SIGNES <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-05-05 Pod::Elemental::Selectors(3pm)