Hello again, I'm still working on the redo of my script I created before and came across a grep question.
I'm on SunOS 5.9 and using the Korn Shell. I'm writing a function to check for validation of root disks being mirrored. If the server allows me to use metastat, I'm looking to show it has... (4 Replies)
suppose i have a file structure(serial file)--
----------
----------
---------
summery
--------
------
--------
finished
-----
-------
i want to fetch lines from summery to finished
i can get line of summery by grep command. but how can i fetch lines untill it reaches finished.probably... (2 Replies)
Hi
I am writing a script which should read a file and search for certain strings 'approved' or 'removed' and retain only those lines that contain the above strings.
Ex: file name 'test'
test:
approved package
waiting for approval package
disapproved package
removed package
approved... (14 Replies)
Hi folks
I am not allowed to install GNU grep on AIX.
Here my code excerpt:
grep_fatal () {
/usr/sfw/bin/gegrep -B4 -A2 "FATAL|QUEUE|SIGHUP"
}
Howto the same on AIX based machine?
from manual GNU grep
‘--after-context=num’
Print num lines of trailing context after... (4 Replies)
I have several very large file that are extracts from Oracle tables. These files are formatted in XML type syntax with multiple entries like:
<ROW>
some information
more information
</ROW>
I want to grep for some words, then print all lines between <ROW> AND </ROW>. Can this be done with AWK?... (7 Replies)
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
Tspi_Hash_GetHashValue(3) Library Functions Manual Tspi_Hash_GetHashValue(3)
TCG Software Stack Developer's Reference
NAME
Tspi_Hash_GetHashValue - get the current hash value of a hash object
SYNOPSIS
#include <tss/platform.h>
#include <tss/tcpa_defines.h>
#include <tss/tcpa_typedef.h>
#include <tss/tcpa_struct.h>
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>
TSS_RESULT Tspi_Hash_GetHashValue(TSS_HHASH hHash, UINT32* pulHashValueLength, BYTE** prgbHashValue);
DESCRIPTION
Tspi_Hash_GetHashValue gets the hash value of a hash object. Tspi_Context_FreeMemory must be used to clean up after this function, as memo-
ry is allocated for the prgbHashValue data.
PARAMETERS
hHash
The handle to the hash object instance whose hash value should be signed.
pulHashValueLength
Receives the length of the hash value data returned at the parameter prgbHashValue.
prgbHashValue
Receives a pointer to the hash value data.
RETURN CODES
Tspi_Hash_GetHashValue returns TSS_SUCCESS on success, otherwise one of the following values is returned:
TSS_E_INVALID_HANDLE
hHash is not a valid handle.
TSS_E_INTERNAL_ERROR
An internal SW error has been detected.
TSS_E_BAD_PARAMETER
One or more parameters is bad.
TSS_E_HASH_INVALID_LENGTH
Hash length is inconsistent with hash algorithm.
TSS_E_HASH_NO_DATA
Hash object has no internal hash value.
CONFORMING TO
Tspi_Hash_GetHashValue conforms to the Trusted Computing Group Software Specification version 1.1 Golden
SEE ALSO Tspi_Hash_UpdateHash(3), Tspi_Hash_Sign(3), Tspi_Hash_VerifySignature(3), Tspi_Hash_SetHashValue(3).
TSS 1.1 2004-05-25 Tspi_Hash_GetHashValue(3)