will search for the first occurrence of signature Base64; deleted everything before the colon-space; print; exit.
Subsequent occurrences of signature Base64 will be ignored.
BUG: if the signature contains colon-space it will be cut. But that shouldn't happen for the data you are using it with.
Andrew
PS I should mentions that the Q in the sed command is a GNU extension and will not work with Unix sed.
Last edited by apmcd47; 05-23-2017 at 11:04 AM..
Reason: Forgot to say the Q command is an extension to sed
Hi
I need some help with using shell script to analyze the content of a file. I hope someone can help me.
I have a file with content like the following:
/foldera/database/procedure/a.proc$$/version1/2
/folderb/database/procedure/proj1/b.proc$$/version2/2
I need to write a shell script to... (16 Replies)
Greetings everyone. Right now I am working on a script to be used during automated deployment of servers. What I have to do is remove localhost.localdomain and localhost6.localdomain6 from the /etc/hosts file. Simple, right? Except most of the examples I've found using sed want to delete the entire... (4 Replies)
Hi,
For my reuirement, I have to read a file from the 2nd line till the last line<EOF>.
Say,
I have a file as test.txt, which as a header record in the first line followed by records in rest of the lines.
for i in `cat test.txt`
{
echo $i
}
While doing the above loop, I have read... (5 Replies)
Hi, I have multiple large files which consist of the below format:
I am trying to write an awk or sed script to remove all occurrences of the 00 record except the first and remove all of the 80 records except the last one.
Any help would be greatly appreciated. (10 Replies)
I need some help. I would like to read in a text file.
Take a variable such as ROW-D-01, compare it to what's in one line in the text file such as PROD/VM/ROW-D-01 and only input PROD/VM into a variable without the /ROW-D-01.
Is this possible? any help is appreciated. (2 Replies)
Hi,
I want to read a live log file line by line and considering those line which start from time stamp;
Below code I am using, which read line but throws an exception when comparing line that does not contain error code
tail -F /logs/COMMON-ERROR.log | while read myline; do... (2 Replies)
I have been searching and trying to come up with an awk that will perform the following on a
converted text file (original is a pdf).
1. Since the first two lines are (begin with) text they are removed
2. if $1 is a number then all text is merged (combined) into one line until the next... (3 Replies)
My file (the output of an experiment) starts off looking like this,
_____________________________________________________________
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
**********************************************************************
Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
LEARN ABOUT REDHAT
dsa_do_verify
DSA_do_sign(3) OpenSSL DSA_do_sign(3)NAME
DSA_do_sign, DSA_do_verify - raw DSA signature operations
SYNOPSIS
#include <openssl/dsa.h>
DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
int DSA_do_verify(const unsigned char *dgst, int dgst_len,
DSA_SIG *sig, DSA *dsa);
DESCRIPTION
DSA_do_sign() computes a digital signature on the len byte message digest dgst using the private key dsa and returns it in a newly allo-
cated DSA_SIG structure.
DSA_sign_setup(3) may be used to precompute part of the signing operation in case signature generation is time-critical.
DSA_do_verify() verifies that the signature sig matches a given message digest dgst of size len. dsa is the signer's public key.
RETURN VALUES
DSA_do_sign() returns the signature, NULL on error. DSA_do_verify() returns 1 for a valid signature, 0 for an incorrect signature and -1
on error. The error codes can be obtained by ERR_get_error(3).
SEE ALSO dsa(3), ERR_get_error(3), rand(3), DSA_SIG_new(3), DSA_sign(3)HISTORY
DSA_do_sign() and DSA_do_verify() were added in OpenSSL 0.9.3.
0.9.7a 2002-09-25 DSA_do_sign(3)