Thanks Yoda,could you please explain the solution ?
Sure, for each non-zero number of field records, the program construct a variable s with value separated by RS (newline by default)
Once a zero number of field record is encountered and s value is not null, it stores the record as key into an associative array: A
Finally in the END rule, the program writes each key in the array to a file.
I need to have an if statement in a script to run if there are certain processes running. Easiest way I can see to do this is to run a ps and grep the results based on what I am looking for:
$ ps -ef | grep wtrs
---
webtrend 5046 1 0 May 12 ? 0:28 /webtrends/versions/6.1/wtrs_ui... (6 Replies)
Hello all.
Sorry, I know this question is similar to many others, but I just can seem to put together exactly what I need.
My file is tab delimitted and contains approximately 1 million rows. I would like to send lines 1,4,& 7 to a file. Lines 2, 5, & 8 to a second file. Lines 3, 6, & 9 to... (11 Replies)
Experts,
I have a file datafile.txt that consists of 1732 Line,
I want to split the file into equal number of lines with 10 file.
(The last file can have 2 line extra to match 1732)
Please advise how to do that,
Thanks in advance.. (2 Replies)
Dear All,
I would like to split a file of the following format into multiple files based on the number in the 6th column (numbers 1, 2, 3...):
ATOM 1 N GLY A 1 -3.198 27.537 -5.958 1.00 0.00 N
ATOM 2 CA GLY A 1 -2.199 28.399 -6.617 1.00 0.00 ... (3 Replies)
I am getting a few gzip files into a folder by doing ftp to another server. Once I get them I move them to another location .But before that I need to make sure each gzip is not more than 5000 lines and split it up . The files I get are anywhere from 500 lines to 10000 lines in them and is in gzip... (4 Replies)
hi, i really need it ...it's not simple to explain but as it's part of a crontab i can't split the file manually...and the file can change every day so the lines are not a good base.
example: how to split 1 csv file in 15 files?
thank you very much
regards :b: (4 Replies)
Hello Friends,
Can anyone help me for the below requirement.
I am having a file called Input.txt.
My requirement is first check the count that is wc -l input.txt
If the result of the wc -l Input.txt is less than 10 then don't split the Input.txt file. Where as if Input.txt >= 10 the split... (12 Replies)
Hi
i have requirement like below
M <form_name> sdasadasdMklkM
D ......
D .....
M form_name> sdasadasdMklkM
D ......
D .....
D ......
D .....
M form_name> sdasadasdMklkM
D ......
M form_name> sdasadasdMklkM
i want split file based on line number by finding... (10 Replies)
Hi
I have a requirement, where i will receive multiple files in a folder (say: /fol1/fol2/). There will be at least 14 to 16 files. The size of the files will different, some may be 80GB or 90GB, some may be less than 5 GB (and the size of the files are very unpredictable). But the names of the... (10 Replies)
I am using below code to split files based on blank lines but it does not work.
awk 'BEGIN{i=0}{RS="";}{x="F"++i;}{print > x;}'
Your help would be highly appreciated
find attachment of sample.txt file (2 Replies)
Discussion started by: imranrasheedamu
2 Replies
LEARN ABOUT MOJAVE
net::dns::rr::ipseckey5.18
Net::DNS::RR::IPSECKEY(3) User Contributed Perl Documentation Net::DNS::RR::IPSECKEY(3)NAME
Net::DNS::RR::IPSECKEY - DNS IPSECKEY resource record
SYNOPSIS
use Net::DNS;
$rr = new Net::DNS::RR('name IPSECKEY precedence gatetype algorithm gateway key');
DESCRIPTION
DNS IPSEC Key Storage (IPSECKEY) resource records.
METHODS
The available methods are those inherited from the base class augmented by the type-specific methods defined in this package.
Use of undocumented package features or direct access to internal data structures is discouraged and could result in program termination or
other unpredictable behaviour.
precedence
$precedence = $rr->precedence;
This is an 8-bit precedence for this record. Gateways listed in IPSECKEY records with lower precedence are to be attempted first.
gatetype
$gatetype = $rr->gatetype;
The gateway type field indicates the format of the information that is stored in the gateway field.
algorithm
$algorithm = $rr->algorithm;
The algorithm type field identifies the public keys cryptographic algorithm and determines the format of the public key field.
gateway
$gateway = $rr->gateway;
The gateway field indicates a gateway to which an IPsec tunnel may be created in order to reach the entity named by this resource record.
key
$key = $rr->key;
Base64 representation of the optional public key block for the resource record.
keybin
$keybin = $rr->keybin;
Binary representation of the public key block for the resource record.
COPYRIGHT
Copyright (c)2007 Olaf Kolkman, NLnet Labs.
Portions Copyright (c)2012 Dick Franks.
Package template (c)2009,2012 O.M.Kolkman and R.W.Franks.
All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
perl, Net::DNS, Net::DNS::RR, RFC4025
perl v5.18.2 2014-01-16 Net::DNS::RR::IPSECKEY(3)