01-11-2009
thanks a lot pmm
this realy helpfull... i spent hours to find a way to do that.... i really appreciate your help
Regards
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a .txt file
Sample:
=====================
NEXT HOST
=====================
AEADBAS001
ip access-list extended BLA_Incoming_Filter
ip access-list extended BLA_Outgoing_Filter
access-list 1 permit xxxxxxxxxxxxxx
access-list 2 permit xxxxxxxxxxxxxx
=====================... (4 Replies)
Discussion started by: I-1
4 Replies
2. Shell Programming and Scripting
hi, I m stuck at a point for more than 3days. My doubt is pretty simple..
I have a web page content in $content. ( got this by using LWP)..
Now I want to display the content matching a pattern.
I tried
if($content =~ m{<div class="abc">(.*?)</div>}s){
print $1;}
that will... (4 Replies)
Discussion started by: therockravi
4 Replies
3. Shell Programming and Scripting
Hi,
I am checking if a file exists or not and based on the result I am sending an email. The email part works fine but the content of the email comes in a single line and I am not able to display it in diferent lines.
if ; then
echo "Hi, \\n An exception exists in the process.... (3 Replies)
Discussion started by: shanth_chandra
3 Replies
4. Shell Programming and Scripting
Hi,
When we have a failure, sometimes we just step restart the job from the next step. Later when we open the log for analysis of the failure, it is becoming difficult to go to the failure part.
For eg., if it is a 1000 line log, the failure may be at 500th line. so wat i want to do is, grep... (6 Replies)
Discussion started by: ajayakunuri
6 Replies
5. UNIX for Dummies Questions & Answers
cat is the normal unix command to display the content of a file.
Is there any program to display the content of the file.
If there is, then can you send me the code. (5 Replies)
Discussion started by: vedanjalig
5 Replies
6. Shell Programming and Scripting
Hi I have multiple files in a folder and one file which contains a list of files (one on each line). I was to search for a string only within these files and not the whole folder. I need the output to be in the form
File1<tab>string instance 2<tab> string instance 2<tab>string instance 3... (6 Replies)
Discussion started by: pkabali
6 Replies
7. Shell Programming and Scripting
Hell,
I want to grep certain word from file and display above 2 lines and after two lines.
Here is the content of sample file.
Mar 14, 2013 12:56:59 AM Agent.Agent SendTo
INFO: Connection to server:7041 - Credential Transmit Successesful
Mar 14, 2013 8:54:21 AM cgent SendTo
WARNING:... (7 Replies)
Discussion started by: balareddy
7 Replies
8. Shell Programming and Scripting
Am using the following grep to match a particular patter in grep.
grep xyz abc.txt
now while i run this command, if the pattern matched, am getting the line containing xyz
Output: xyz is doing some work
Now if i want the file name also along with my output, what should i do
Expected... (2 Replies)
Discussion started by: rituparna_gupta
2 Replies
9. Shell Programming and Scripting
Dear Gurus,
I'm in a strange situation, hence need some kind of advice or possible syntax to carry on.
let's say current time/date is 2013-12-18, 15:58:15
I got a file something like this, which keep getting updated with respect to time.
2013-12-18,... (4 Replies)
Discussion started by: manas_ranjan
4 Replies
10. UNIX for Beginners Questions & Answers
I have two file as given below which shows the ACL permissions of each file. I need to compare the source file with target file and list down the difference as specified below in required output. Can someone help me on this ?
Source File
*************
# file: /local/test_1
# owner: own
#... (4 Replies)
Discussion started by: sarathy_a35
4 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)