Hello,
I have got one file with more than 120+ million records(35 GB in size). I have to extract some relevant data from file based on some parameter and generate other output file.
What will be the besat and fastest way to extract the ne file.
sample file format :--... (2 Replies)
I have a file containing date/time sorted data of the form
...
2009/06/10,20:59:59.950,XAG/USD,Q,1,1115, 14.3025,100,1,1
2009/06/10,20:59:59.950,XAG/USD,Q,1,1116, 14.3026,125,1,1
2009/06/10,20:59:59.950,XAG/USD,R,0,0, , 0,0,0
2009/06/10,20:59:59.950,XAG/USD,R,1,0, 14.1910,100,1,1... (6 Replies)
Hi All,
I am trying to extract data from a large text file , I want to extract lines which contains a five digit number followed by a hyphen , like
12345- , i tried with egrep ,eg : egrep "+" text.txt
but which returns all the lines which contains any number of digits followed by hyhen ,... (19 Replies)
I have a script with this statement:
/usr/xpg4/bin/awk -F"" 'NR==FNR{s=$2;next}{printf "%s\"%s\"\n", $0, s}' LOOKUP.TXT finallistnew.txt >test.txt
I want to include logic or an additional step that says if there is no data in field 3, move the whole line out of test.txt into an additional... (9 Replies)
I have the test data with 10 column separated by comma and each column has more than 1000000 rows. Can anyone help me to find empty field in all columns and delete that empty field alone and lift that column up by one row.
Data with empty field:
A74203XYZ,A21718XYZ,A72011XYZ,A41095XYZ,... (7 Replies)
So I want to put a line at the end of my script which greps for keywords from syslog.log that outputs the following after it is done:
"This file was last modified on (thisdate)"
I know I can use the following to get the date:
rtidsvb(izivanov):/home/izivanov> ll /var/adm/syslog/syslog.log ... (4 Replies)
I am trying to update an older program on a small cluster. It uses individual files to send jobs to each node. However the newer database comes as one large file, containing over 10,000 records. I therefore need to split this file. It looks like this:
HMMER3/b
NAME 1-cysPrx_C
ACC ... (2 Replies)
Hi all,
I want to remove empty field in a text file. I tried to used sed. But it failed.
Input:
LG10_PM_map_19_LEnd 1000560 G AG AG
LG10_PM_map_19_LEnd 1005621 G AG
LG10_PM_map_19_LEnd 1011214 A AG AG
LG10_PM_map_19_LEnd 1011673 T CT CT ... (3 Replies)
Dear all,
I want to extract around 300 columns from a very large file with almost 2million columns. There are no headers, but I can find out which column numbers I want. I know I can extract with the function 'cut -f2' for example just the second column but how do I do this for such a large... (1 Reply)
Hi All!!
I have a large file containing millions of records. My purpose is to extract 8 characters immediately from the given file.
222222222|ZRF|2008.pdf|2008|01/29/2009|001|B|C|C
222222222|ZRF|2009.pdf|2009|01/29/2010|001|B|C|C
222222222|ZRF|2010.pdf|2010|01/29/2011|001|B|C|C... (5 Replies)
Discussion started by: pavand
5 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)