Sponsored Content
Top Forums Shell Programming and Scripting Need a helping hand --stuck in starting of this problm. Post 302088791 by sayonm on Thursday 14th of September 2006 11:52:21 AM
Old 09-14-2006
very simple soln

i think i have a very simple soution....

Code:
$ cat file | cut -f 25 -d',' | grep -v '^.' | wc -l

for checking every field just change the no. "25" to whatever col. no. u want to check (1,2,3,4,5,6,10,11) and then note the value. if it is non - zero then something must be missing....simple right???

do u really want to save the labour of changing the file name and the no ("25")....then a basic script can be written to automate the above command....do let us know..if it worked
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need a hand. Please?

i have a script in sh. with awk, e.g. want to list all the contents of a subdirectory an a tabular way. ej: outoput directory1 subdirectory1 subdirectory2 subdirectory3 file1 filen file2 filez file2 ... filen+1 ... (1 Reply)
Discussion started by: alexcol
1 Replies

2. IP Networking

helping new Linux users remotely ?

I volunteer with a small charity which locally donates refurbished computers to people who normally could not afford their own computer. Most of these computers now have Linux on them. We are in the process of remastering Xubuntu 9.04 to use as our main distro from now on. In the past any time... (3 Replies)
Discussion started by: lagagnon
3 Replies

3. Shell Programming and Scripting

Helping in parsing subset of text from a big results file

Hi All, I need some help to effectively parse out a subset of results from a big results file. Below is an example of the text file. Each block that I need to parse starts with "reading sequence file 10.codon" (next block starts with another number) and ends with **p-Value(s)**. I have given... (1 Reply)
Discussion started by: Lucky Ali
1 Replies

4. Shell Programming and Scripting

cut operation is not helping me much

hi, i have a file where I want to extract the the failure count only from the file. JOB_NAME STATE RUN_COUNT FAILURE_COUNT ------------------------------ --------------- ---------- ------------- OFS_BALA_BILLING_IN SCHEDULED 22992 ... (6 Replies)
Discussion started by: gotam
6 Replies

5. Shell Programming and Scripting

Merge left hand strings mapping to different right hand strings

Hello, I am working on an Urdu to Hindi dictionary which has the following structure: a=b a=c n=d n=q and so on. i.e. Headword separated from gloss by a = I am giving below a live sample بتا=बता بتا=बित्ता بتا=बुत्ता بتان=बतान بتان=बितान بتانا=बिताना I need the following... (3 Replies)
Discussion started by: gimley
3 Replies

6. Shell Programming and Scripting

Helping a Newbie with Shell Homework

Good Evening, i got a homework where i have to list all files in the directory with the name length >=3 and <= 6 and after trying it for 2 days my Prof gave me a bit of code: #!/bin/bash for file in $(ls) do done after that he told me "now you only have to use wc and you got it" but... (1 Reply)
Discussion started by: Mentoss
1 Replies

7. UNIX for Dummies Questions & Answers

How to grep a line not starting with # from a file (there are two lines starting with # and normal)?

e.g. File name: File.txt cat File.txt Result: #INBOUND_QUEUE=FAQ1 INBOUND_QUEUE=FAQ2 I want to get the value for one which is not commented out. Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies
OPENSSL_SPKI_EXPORT_CHALLENGE(3)					 1					  OPENSSL_SPKI_EXPORT_CHALLENGE(3)

openssl_spki_export_challenge - Exports the challenge assoicated with a signed public key and challenge

SYNOPSIS
string openssl_spki_export_challenge (string &$spkac) DESCRIPTION
Exports challenge from encoded signed public key and challenge PARAMETERS
o $spkac - Expects a valid signed public key and challenge RETURN VALUES
Returns the associated challenge string or NULL on failure. ERRORS
/EXCEPTIONS Emits an E_WARNING level error if an invalid argument is passed via the $spkac parameter. EXAMPLES
Example #1 openssl_spki_export_challenge(3) example Extracts the associated challenge string or NULL on failure. <?php $pkey = openssl_pkey_new('secret password'); $spkac = openssl_spki_new($pkey, 'challenge string'); $challenge = openssl_spki_export_challenge(preg_replace('/SPKAC=/', '', $spkac)); ?> Example #2 openssl_spki_export_challenge(3) example from <keygen> Extracts the associated challenge string issued from the <keygen> element <?php $challenge = openssl_spki_export_challenge(preg_replace('/SPKAC=/', '', $_POST['spkac'])); ?> <keygen name="spkac" challenge="challenge string" keytype="RSA"> SEE ALSO
openssl_spki_new(3), openssl_spki_verify(3), openssl_spki_export(3), openssl_md_method(3), openssl_csr_new(3), openssl_csr_sign(3). PHP Documentation Group OPENSSL_SPKI_EXPORT_CHALLENGE(3)
All times are GMT -4. The time now is 06:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy