i have checked for these input also. its giving the following output
As for the code in array a[] i am storing the start time associative with array index as 9th field.
once i got start time i am storing end time for the same value of field 9 in array b[].
In the END i am finding the time difference from start and end time stored in array a[] and b[].
Here i had assumed the date is same for start and end of process.
if dates are different than the changes need to be made in calculating the time difference.
This User Gave Thanks to raj_saini20 For This Post:
Hi ,
I have a piece of code ...wherein I need to assign the following ...
1) A command line argument to a variable
e.g origCount=ARGV
2) A unix command to a variable
e.g result=`wc -l testFile.txt`
in my awk shell script
When I do this :
print "origCount" origCount --> I get the... (0 Replies)
Sorry for the duplicate thread this one is similar to the one in
https://www.unix.com/shell-programming-scripting/88132-awk-sed-script-read-values-parameter-files.html#post302255121
Since there were no responses on the parent thread since it got resolved partially i thought to open the new... (4 Replies)
I have a script problem that I am not able to solve due my very limited understanding of unix/awk.
This is the contents of test.sh
awk '{print $1}'
From the prompt if I enter:
./test.sh Hello World
I would expect to see "Hello" but all I get is a blank line. Only then if I enter "Hello... (2 Replies)
Hello all,
Here is what my bash script does: sums number columns, saves the tot in new column, outputs if tot >= threshold val:
> cat getnon0file.sh
#!/bin/bash
this="getnon0file.sh"
USAGE=$this"
InFile="xyz.38"
Min="0.05"
#
awk '{sum=0; for(n=2; n<=NF; n++){sum+=$n};... (4 Replies)
Hi,
I have a situation to compare one file, say file1.txt with a set of files in directory.The directory contains more than 100 files.
To be more precise, the requirement is to compare the first field of file1.txt with the first field in all the files in the directory.The files in the... (10 Replies)
below is the output xml string from some other command and i will be parsing it using awk
cat /tmp/alerts.xml
<Alert id="10102" name="APP-DS-ds_ha-140018-componentFailure-S" alertDefinitionId="13982" resourceId="11427" ctime="1359453507621" fixed="false" reason="If Event/Log Level(ANY) and... (2 Replies)
Hi,
I am trying to pass awk field to a command line executed within awk (need to convert a timestamp into formatted date).
All my attempts failed this far.
Here's an example.
It works fine with timestamp hard-codded into the command
echo "1381653229 something" |awk 'BEGIN{cmd="date -d... (4 Replies)
Discussion started by: tuxer
4 Replies
LEARN ABOUT OPENSOLARIS
dnssec-signkey
dnssec-signkey(1M) System Administration Commands dnssec-signkey(1M)NAME
dnssec-signkey - DNSSEC key set signing tool
SYNOPSIS
dnssec-signkey [-ahp] [-c class] [-e end-time]
[-r randomdev] [-s start-time] [-v level] keyset key...
DESCRIPTION
The dnssec-signkey utility signs a keyset. Typically the keyset will be for a child zone and will have been generated by dnssec-makekey-
set(1M). The child zone's keyset is signed with the zone keys for its parent zone. The output file is of the form signedkey-nnnn., where
nnnn is the zone name.
OPTIONS
The following options are supported:
-a Verify all generated signatures.
-c class Specify the DNS class of the key sets.
-e end-time Specify the date and time when the generated SIG records expire. As with start-time, an absolute time is indicated in
YYYYMMDDHHMMSS notation. A time relative to the start time is indicated with +N, which is N seconds from the start time. A
time relative to the current time is indicated with now+N. If no end-time is specified, 30 days from the start time is
used as a default.
-h Prints a short summary of the options and arguments to dnssec-signkey().
-p Use pseudo-random data when signing the zone. This is faster, but less secure, than using real random data. This option
may be useful when signing large zones or when the entropy source is limited.
-r randomdev Specify the source of randomness. If the operating system does not provide a /dev/random or equivalent device, the default
source of randomness is keyboard input. randomdev specifies the name of a character device or file containing random data
to be used instead of the default. The special value keyboard indicates that keyboard input should be used.
-s start-time Specify the date and time when the generated SIG records become valid. This can be either an absolute or relative time. An
absolute start time is indicated by a number in YYYYMMDDHHMMSS notation; 20000530144500 denotes 14:45:00 UTC on May 30th,
2000. A relative start time is indicated by +N, which is N seconds from the current time. If no start-time is specified,
the current time is used.
-v level Set the debugging level.
OPERANDS
The following operands are supported:
key The keys used to sign the child's keyset.
keyset The file containing the child's keyset.
EXAMPLES
Example 1 Sign the keyset file for example.com.
The DNS administrator for a DNSSEC-aware .com zone would use the following command to sign the keyset file for example.com created by
dnssec-makekeyset with a key generated by dnssec-keygen:
dnssec-signkey keyset-example.com. Kcom.+003+51944
In this example, dnssec-signkey creates the file signedkey-example.com, which contains the example.com keys and the signatures by the .com
keys.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------------------------------------+
| ATTRIBUTE TYPE ATTRIBUTE VALUE |
|Availability SUNWbind9 |
|Interface Stability External |
+-----------------------------------------------------------+
SEE ALSO dnssec-keygen(1M), dnssec-makekeyset(1M), dnssec-signzone(1M), attributes(5)NOTES
Source for BIND9 is available in the SUNWbind9S package.
SunOS 5.11 20 Mar 2007 dnssec-signkey(1M)