Hi there,
I am writing a script to look for tmp log files that have not been access within the last 10 days.
I am using the follwing command within the script:
find /var/tmp -name *log -atime -9 ¦xargs
What I would like to be able to do would be to display a message if there is no... (3 Replies)
Hello, can someone help me how to find a word and 2 lines after it and then send the output to another file.
For example, here is myfile1.txt. I want to search for "Error" and 2 lines below it and send it to myfile2.txt
I tried with grep -A but it's not supported on my system.
I tried with awk,... (4 Replies)
I'm using awk to determine if a field starting in position 604 for length of 10 is not equal to ALL spaces. It's searching several files which are in the current directory.
The below awk indicates that there are 84 records on all files where this field IS NOT equal to ALL spaces ( there are 10... (2 Replies)
Hi all I have a need of searching some pattern in file by month and then count unique records
D11
G11
R11 -------> Pattern available in file
S11
Jan$1 to $5 column contains some records in which I want to find unique
for this purpose I have written script like below
awk '/Jan/ ||... (4 Replies)
Hi,
I have FileA with one column.
File B with 15 columns separated by comma delimiter.
I need to compare the FILEA value with all 15 columns of FILEB... if matches, need to return the 1st, 2nd column values of FILEB.
How to achieve this through shell script? Thanks in advance. (5 Replies)
URGENT HELP IS NEEDED!!
I am looking to move matching lines (01 - 07) from File1 and 77 tab the matching string from File2, to File3.txt. I am almost done but
- Currently, script is not printing lines to File3.txt in order.
- Also the matching lines are not moving out of File1.txt
... (1 Reply)
Trying to use awk to find a keyword and return the matches in the row, but also $1 and $2, which are the unique id's, but they only appear once. Thank you :).
file
name 31 Index Chromosomal Position Gene Inheritance
122 2106725 TSC2 AD
124 2115481 TSC2 AD
121 2105400 TSC2 AD... (6 Replies)
Trying to combine the matching $5 values between file1 and file2. If a match is found then the last $6 value in the match and the sum of $7 are outputted to a new file. The awk below I hope is a good start. Thank you :).
file1
chr12 9221325 9221448 chr12:9221325-9221448 A2M 1... (5 Replies)
Trying to get the unique count of the below input, but if the text in beginning of $5 is a partial match to another line in the file then it is not unique.
awk
awk '!seen++ {n++} END {print n}' input
7 input
chr1 159174749 159174770 chr1:159174749-159174770 ACKR1
chr1 ... (2 Replies)
In the below awk I am trying output to one file those lines that match between $2,$3,$4 of file1 and file2 with the count in (). I am also trying to output those lines that are missing between $2,$3,$4 of file1 and file2 with the count of in () each. Both input files are tab-delimited, but the... (7 Replies)
Discussion started by: cmccabe
7 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)