I need an assistance in file generation using awk, sed or anything...
I have a big file that i need to filter desired parts only. The objective is to select (and print) the report # having the string "apple" on 2 consecutive lines in every report. Please note that the "apple" line has a HEX... (1 Reply)
I have two files one (numbers file)contains the numbers(approximately 30000) and the other file(record file) contains the records(approximately 40000)which may or may not contain the numbers from that file.
I want to seperate the records which has the field 1=(any of the number from numbers... (15 Replies)
Hi
I'm reading about the libpcap documentation. I see that with the function:
pcap_setfilter ( pcap_t *p, struct bpf_program *fp)
we can choose to take one packet instead another.
I read that the struct bpf_program allow us to create a packet filter , ....so if I want just sample some... (2 Replies)
Hi,
I have a file which has a number in each line ( i think they are strings )
I will have a $first and $last variable, which are strings but contains only numbers. Also a file $f, I want to filter out the lines in $f with only numbers in between $first and $last. Do I need to consider the... (2 Replies)
Hi,
I can write sh script for Linux platform
I run:
netstat -an | grep -P '\:'38''| grep ESTABLISHED
but result:
# netstat -an | grep -P '\:'38''| grep ESTABLISHED
tcp 0 0 172.16.1.107:383 172.16.1.81:49981 ESTABLISHED
tcp 0 0... (8 Replies)
Hi all!
I have a data set in this tab separated format : Label, Value1, Value2
An instance is "data.txt" :
0 1 1
-1 2 3
0 2 2
I would like to parse this data set and generate two files, one that has only data with the label 0 and the other with label -1, so my outputs should be, for... (1 Reply)
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)
Hi,
i have a file, where measurement-data is stored in the first column. The file has also a header of 5 lines. I want to set counting up numbers in front of any particular measurement-value; should start at the 6. line with starting number 1.
i try to solve it with ...
awk 'NR > 6 { print... (6 Replies)
Hello,
I've got a list of a single column numbers like
3000.66
3002.55
3062.23
3242.12
etc...
I would like to delete all numbers higher than for example 3060.00 and lower
than 2990.00
How can I do that?
Thanks in advance (2 Replies)
Discussion started by: Board27
2 Replies
LEARN ABOUT MOJAVE
ppi::statement::scheduled5.18
PPI::Statement::Scheduled(3) User Contributed Perl Documentation PPI::Statement::Scheduled(3)NAME
PPI::Statement::Scheduled - A scheduled code block
INHERITANCE
PPI::Statement::Scheduled
isa PPI::Statement::Sub
isa PPI::Statement
isa PPI::Node
isa PPI::Element
DESCRIPTION
A scheduled code block is one that is intended to be run at a specific time during the loading process.
There are five types of scheduled block:
BEGIN {
# Executes as soon as this block is fully defined
...
}
CHECK {
# Executes after overall compile-phase in reverse order
...
}
UNITCHECK {
# Executes after compile-phase of individual module in reverse order
...
}
INIT {
# Executes just before run-time
...
}
END {
# Executes as late as possible in reverse order
...
}
Technically these scheduled blocks are actually subroutines, and in fact may have 'sub' in front of them.
METHODS
type
The "type" method returns the type of scheduled block, which should always be one of 'BEGIN', 'CHECK', 'UNITCHECK', 'INIT' or 'END'.
TO DO
- Write 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.18.2 2011-02-25 PPI::Statement::Scheduled(3)