03-29-2011
Thanks pravin ,the second case i mentioned is an example , there are more records like that ..with diff fields , so can't hardcode the port field .There is only one Symmetrix Id field ...the very first one
thx
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
1 . Thanks everyone who read the post first.
2 . I have a log file which size is 143M , I can not use vi open it .I can not use xedit open it too.
How to view it ?
If I want to view 200-300 ,how can I implement it
3 . Thanks (3 Replies)
Discussion started by: chenhao_no1
3 Replies
2. Shell Programming and Scripting
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)
Discussion started by: apalex
1 Replies
3. Shell Programming and Scripting
Morning guys. Another day another question. :rolleyes:
I am knocking up a script to pull some data from a file. The problem is the file is very big (up to 1 gig in size), so this solution:
for results in `grep "^\
... works, but takes ages (we're talking minutes) to run. The data is held... (8 Replies)
Discussion started by: dlam
8 Replies
4. Shell Programming and Scripting
hi guys,
i want to parse a file using public function, the file contain raw data in the below format i want to get the output like this to load it to Oracle DB
MARWA1,BSS:26,1,3,0,0,0,0,0.00,22,22,22.00
MARWA2,BSS:26,1,3,0,0,0,0,0.00,22,22,22.00
this the file raw format:
Number of... (6 Replies)
Discussion started by: dagigg
6 Replies
5. Shell Programming and Scripting
I have an xml file with the structure:
<tag1>
<value1>xyx</value1>
<value2>123</value2>
</tag1>
<tag1>
<value1>568</value1>
<value2>zzzzz</value2>
</tag1>
where I want to parse each data pair in the this single file, so something like:
find first tag1 data pair... (1 Reply)
Discussion started by: unclecameron
1 Replies
6. Shell Programming and Scripting
Hi all,
I would like to compare a column in one file to a column in another file and when there is a match it prints the first column and the corresponding second column. Example
File1
ABA
ABC
ABE
ABF
File 2
ABA 123
ABB 124
ABD 125
ABC 126
So what I would like printed to a... (6 Replies)
Discussion started by: pcg
6 Replies
7. Shell Programming and Scripting
Hi guys (and gals).
I need some help. I'm running an IVR purely on Asterisk where I capture the DTMFs. After pulsing each DTMF I have Asterisk write to a file with whatever was dialed (mostly used for record-keeping) and at the end of the survey I write all variables in a single line to a... (2 Replies)
Discussion started by: tulf210
2 Replies
8. Shell Programming and Scripting
Hi Experts,
I am trying to parse the following file;
FILEA
a|b|c|c|c|c
a|b|d|d|d|d
e|f|a|a|a|a
e|f|b|b|b|boutput expected:
a<TAB>b
<TAB><TAB>c<TAB>c<TAB>c<TAB>c<TAB>
<TAB><TAB>d<TAB>d<TAB>d<TAB>d<TAB>
e<TAB>f
<TAB><TAB>a<TAB>a<TAB>a<TAB>a<TAB>
<TAB><TAB>b<TAB>b<TAB>b<TAB>b<TAB>*... (7 Replies)
Discussion started by: rajangupta2387
7 Replies
9. Shell Programming and Scripting
Hi all, I have a file that contains a good hundred of these job definitions below:
Job Name Last Start Last End ST Run Pri/Xit
________________________________________________________________ ____________________... (7 Replies)
Discussion started by: atticuss
7 Replies
10. Shell Programming and Scripting
this thread is a continuation from previous thread
https://www.unix.com/shell-programming-and-scripting/223901-split-big-file-into-multiple-files-based-first-four-characters.html
..I am using awk to split file and I have a syntax error while executing the below code
I am using AIX 7.2... (4 Replies)
Discussion started by: etldev
4 Replies
LEARN ABOUT DEBIAN
keymod
KEYMOD(1p) User Contributed Perl Documentation KEYMOD(1p)
NAME
keymod - Modifies key parameters in a DNSSEC-Tools keyrec file
SYNOPSIS
keymod [options] keyrec1 ... keyrecN
DESCRIPTION
keymod modifies the key parameters in a keyrec file that are used to generate cryptographics keys used to sign zones. The new parameters
will be used by zonesigner when generating new keys. It has no effect on existing keys.
zonesigner will use the new parameter for a zone the next time it generates a key that requires that parameter. This means that, for
example, a new ZSK length will not be used during the next invocation of zonesigner if that invocation will be performing KSK-rollover
actions.
The following fields may be modified:
kskcount - count of KSK keys
ksklength - length of KSK keys
ksklife - lifetime of KSK keys
random - random number generator device file
revperiod - revocation period for KSK keys
zskcount - count of ZSK keys
zsklength - length of ZSK keys
zsklife - lifetime of ZSK keys
New key/value fields will be added to a zone keyrec file to inform zonesigner that new values should be used. The key portion of the added
fields will begin with "new_". For example, a new KSK length of 2048 will be written to the keyrec file as:
new_ksklength 2048
All zone records in the specified keyrec file will be modified, unless the -zone option is given. In that case, only the named zone will
be modified.
If a zone keyrec already contains a new key/value field, then the value will be modified on subsequent runs of keymod.
OPTIONS
keymod recognizes the following options. Multiple options may be combined in a single keymod execution.
All numeric values must be positive or zero.
If a new key/value field should be deleted from a zone keyrec, then a zero or empty string value should be specified for the appropriate
option.
-zone zonename
The zone keyrec whose name matches zonename is selected as the only keyrec that will be modified. If this name is not given, then all
zone keyrec records will be modified.
-ksklength ksklength
The ksklength field will be modified in the selected keyrec records to the given value. This is a numeric field whose values depend on
the cryptographic algorithm to be used to generate keys for the zone.
-kskcount kskcount
The kskcount field will be modified in the selected keyrec records to the given value. This is a numeric field.
-ksklife ksklife
The ksklife field will be modified in the selected keyrec records to the given value. This is a numeric field.
-random random
The random field will be modified in the selected keyrec records to the given value. This is a text field that will be passed to the
key generator.
-revperiod revperiod
The revperiod field will be modified in the selected keyrec records to the given value. This is a numeric field.
-zskcount zskcount
The zskcount field will be modified in the selected keyrec records to the given value. This is a numeric field.
-zsklength zsklength
The zsklength field will be modified in the selected keyrec records to the given value. This is a numeric field whose values depend on
the cryptographic algorithm to be used to generate keys for the zone.
-zsklife zsklife
The zsklife field will be modified in the selected keyrec records to the given value. This is a numeric field.
-nocheck
If this option is given, the krfcheck command will not be run on the modified keyrec file.
-verbose
Display information about every modification made to the keyrec file.
-Version
Displays the version information for keymod and the DNSSEC-Tools package.
-help
Display a usage message.
COPYRIGHT
Copyright 2012 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.
AUTHOR
Wayne Morrison, tewok@tislabs.com
SEE ALSO
zonesigner(8), krfcheck(8)
Net::DNS::SEC::Tools::keyrec.pm(3)
file-keyrec(5)
perl v5.14.2 2012-06-21 KEYMOD(1p)