03-28-2005
Thanks,
I like the way it is giving me option , but if the userid is not there then i need to break out saying userid doesnot exist, how to do that??
Thanks,
Gundu
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
alist contain:
a
b
c
d
e
blist contain:
a
b
c
the code:
#!/usr/bin/ksh
cat blist | while read line
do
grep -V "$line" alist > data
done (8 Replies)
Discussion started by: bobo
8 Replies
2. Shell Programming and Scripting
Hi All,
Reference to my previous post
I need to compare all the lines in the file1 with file2
for this condition if file1 {$3,$5} ==file2 {$3,$5} then grep file2{$1}latest date.
need output in file3
10/04/2008
09/04/2008
09/04/2008
08/04/2008
can anyone suggest me
Thanks... (0 Replies)
Discussion started by: karthikn7974
0 Replies
3. Shell Programming and Scripting
Hello All,
I have been reading posts on here for a while, but this is my first post. I have a document in which many sentences appear, and I am piping it through an exterior script which will tag each word in the document with its part of speech (not part of my script, just background). The... (3 Replies)
Discussion started by: daf189
3 Replies
4. Shell Programming and Scripting
Hi all,
I have the below script to get input but i cannot get grep to work.
input1.txt
AAAAAAAAG
input2.txt
>gi|184009.1| LEAFY-like |AAAAAAAAGSGGGDHLPY
However, when i use grep -f input1.txt input2.txt
i cannot get any output matches (note that the match is underlined).
Is it... (8 Replies)
Discussion started by: turkishvan
8 Replies
5. UNIX for Dummies Questions & Answers
:wall:
I have a requirement to search a log file that never rotates for certain values. If I find them I pipe them to a another file. To log file is constanyl being appened with new lines and never rotating Easy so far.
The problem is I dont want to pipe out matches already seen before. ... (3 Replies)
Discussion started by: gunnahafta
3 Replies
6. Shell Programming and Scripting
So this is what I'm trying to do:
I have a file called registry.txt which has a list of registry entries I want to search for.
I have another file called inctrl.txt on which I want to perform the search on.
Here's the example contents of registry.txt
SOFTWARE\Microsoft\Security... (3 Replies)
Discussion started by: r4v3n
3 Replies
7. Red Hat
Hello everybody,
I have been searching it, but it seems I am unable to find the correct information, that s why I am asking you guys, hoping somebody get an idea.
Here is my problem :
I want a script to loop until a string is identified in a log file.
Here is the script :
#!/bin/sh... (5 Replies)
Discussion started by: guyiom
5 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I need to search through the users home directories for keywords, display them. The code listed below will show... (7 Replies)
Discussion started by: jcllns1
7 Replies
9. UNIX for Beginners Questions & Answers
Hello -
I am running a script that is outputting to a log. Let call it output.log
I would like to monitor that log until the line "Build Successful" is found.
I think I would need to use the grep command.
How would I do that in a loop?
Thanks
Marty (1 Reply)
Discussion started by: MSpeare
1 Replies
10. Shell Programming and Scripting
Hello,
I have built the following script to check if processes supplied by the argument are running or not.
#!/bin/bash
PROCLIST=$1
PROCESS="0"
ERROR_PROCS=""
IFS='+'
read -ra ADDR <<< "$PROCLIST"
for PROC in "${ADDR}"; do
if ; then
PROCESS=1
... (9 Replies)
Discussion started by: nms
9 Replies
LEARN ABOUT DEBIAN
pgpgpg
PGP(1) General Commands Manual PGP(1)
NAME
pgpgpg - wrapper around Gnu Privacy Guard that takes Pretty Good Privacy command line options
SYNOPSIS
pgpgpg [options] pgpfile
pgpgpg -e [options] file user ...
DESCRIPTION
PGPGPG is a wrapper that allows calls to GnuPG (Gnu Privacy Guard) using the command line options of (Pretty Good Privacy). PGP and GnuPG
are encryption programms with high security encryption engines. However, PGP is available without a fee but is not realy free software.
GnuPG on the other hand is realy free software and has additionally features but with a different command line syntax than PGP.
The goal of pgpgpg is to plug in a command line syntax in front of GnuPG equal to PGP 2.6.
OPTIONS
The following options are supported by pgpgpg notice that long options do not use the usual GNU syntax (--) but, instead are of the form
+option[=value].
-e Encrypt a plaintext file.
-d, -p Decrypt a plaintext file.
-s Sign a plaintext file.
pgpgpg -s file [-u userid]
-sb Create a separate signature certificate (a .sig file) for a given file.
pgpgpg -sb file [-u userid]
-c Use convential cryptography when encrypting.
-o Output to the file specified. Should only be used for encryption, decryption and signature operations (not for key management).
-a, +armor
ASCII armor the output file.
-u, +myname
Select the userid to use for some operations.
-kg Generate a unique public/secret pair.
-ka Add a public or secret key to your key ring.
pgpgpg -ka keyfile [keyring]
-kx Extract a copy from your public or secret keyring.
pgpgpg -kx[a] userid keyfile [keyring]
-kv View the contents of your keyring.
pgpgpg -kv[v] [userid] [keyring]
-kvc View a key fingerprint.
pgpgpg -kvc [userid] [keyring]
-kr Remove a key from your keyring.
pgpgpg -kr userid [keyring]
-kd If acting on your secret key, permanently revoke a key and issue a compromise certificate. If acting on a public key, disable or
reenable a key.
pgpgpg -kd userid
-ke Edit trust parameters for a public key or edit the pass phrase or add a userid to a secret key.
pgpgpg -ke userid [keyring]
-kc View the contents and check the certifying signatures of your public key ring.
pgpgpg -kc [userid] [keyring]
-ks Sign and certify someone's public key.
pgpgpg -ks userid [-u userid] [keyring]
The following options are ignored or unsupported: ++armorlines, +autosign, +bakring, +interactive, +keepbinary, +language, +legal_kludge,
+nomanual, +pager, +randseed, +tmp and +tzfix.
BUGS
PGPGPG does not currently provide an online help (-h or -?) and will not show a summary of commands, as PGP does, when typing:
pgp -k
The following options are not documented (yet): +batchmode, +cert_depth, +charset, +encrypttoself, +force, +clearsig, +comment, +com-
pletes_needed, +compress, +marginals_needed, +pubring, +secring, +textmode and +verbose.
AUTHORS
PGP was originally written by Philip R. Zimmermann. PGPGPG was written by Michael Roth.
This manpage was written by Javier Fernandez-Sanguino for the Debian distribution (but may be used by others) by glancing at PGP's manpage
and the source code from PGPGPG (pgpopts.c)
PGPGPG Version 0.13 PGP(1)