PERL: if($key == "a" ), how to check alphas!


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting PERL: if($key == "a" ), how to check alphas!
# 8  
Old 04-07-2007
Thanks all for the excellent help on this!

BobK
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies

2. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

3. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Solaris

How to check "faulty" or "stalled" print queues - SAP systems?

Hi all, First off, sorry for a long post but I think I have no other option if I need to explain properly what I need help for. I need some advise on how best to check for "faulty" or "stalled/jammed' print queues. At the moment, I have three (3) application servers which also acts as print... (0 Replies)
Discussion started by: newbie_01
0 Replies

6. Shell Programming and Scripting

"Join" or "Merge" more than 2 files into single output based on common key (column)

Hi All, I have working (Perl) code to combine 2 input files into a single output file using the join function that works to a point, but has the following limitations: 1. I am restrained to 2 input files only. 2. Only the "matched" fields are written out to the "matched" output file and... (1 Reply)
Discussion started by: Katabatic
1 Replies

7. Shell Programming and Scripting

"sed" to check file size & echo " " to destination file

Hi, I've modified the syslogd source to include a thread that will keep track of a timer(or a timer thread). My intention is to check the file size of /var/log/messages in every one minute & if the size is more than 128KB, do a echo " " > /var/log/messages, so that the file size will be set... (7 Replies)
Discussion started by: jockey007
7 Replies

8. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

9. Shell Programming and Scripting

check input = "empty" and "numeric"

Hi how to check input is "empty" and "numeric" in ksh? e.g: ./myscript.ksh k output show: invalid number input ./myscript.ksh output show: no input ./myscript.ksh 10 output show: input is numeric (6 Replies)
Discussion started by: geoffry
6 Replies
Login or Register to Ask a Question
PERL-NOCEM(8)						    InterNetNews Documentation						     PERL-NOCEM(8)

NAME
perl-nocem - A NoCeM-on-spool implementation for INN 2.x SYNOPSIS
perl-nocem DESCRIPTION
NoCeM, which is pronounced No See 'Em, is a protocol enabling authenticated third-parties to issue notices which can be used to cancel unwanted articles (like spam and articles in moderated newsgroups which were not approved by their moderators). It can also be used by readers as a third-party killfile. It is intended to eventually replace the protocol for third-party cancel messages. perl-nocem processes third-party, PGP-signed article cancellation notices. It is possible not to honour all NoCeM notices but only those which are sent by people whom you trust (that is to say if you trust the PGP key they use to sign their NoCeM notices). Indeed, it is up to you to decide whether you wish to honour their notices, depending on the criteria they use. Processing NoCeM notices is easy to set up: 1. Import the keys of the NoCeM issuers you trust in order to check the authenticity of their notices. You can do: gpg --no-default-keyring --primary-keyring=/etc/news/pgp/ncmring.gpg --no-options --allow-non-selfsigned-uid --no-permission-warning --batch --import <key-file> where <pathetc> is the value of the pathetc parameter set in inn.conf and <key-file> the file containing the key(s) to import. The keyring must be located in <pathetc>/pgp/ncmring.gpg; you only have to create the directory <pathetc>/pgp before using gpg (it will automatically generate the ncmring.gpg file). For old PGP-generated keys, you may have to use --allow-non-selfsigned-uid if they are not properly self-signed, but anyone creating a key really should self-sign the key. Current PGP implementations do this automatically. The keys of NoCeM issuers can be found in the web site of The NoCeM Registry: <http://www.xs4all.nl/~rosalind/nocemreg/nocemreg.html>. You can even download there a unique file which contains all the keys. 2. Create a nocem.ctl config file in pathetc indicating the NoCeM issuers and notices you want to follow. This permission file contains lines like: bleachbot@httrack.com:spam,site pgpmoose@killfile.org:pgpmoose-forged-moderation This will remove all articles for which the issuer (first part of the line, before the colon ":") has issued NoCeM notices corresponding to the criteria specified after the colon. You will also find information about that on the web site of The NoCeM Registry. 3. Add to the newsfeeds file an entry like this one in order to feed perl-nocem the NoCeM notices posted to alt.nocem.misc and news.lists.filters: nocem! :!*,alt.nocem.misc,news.lists.filters :Tc,Wf,Ap:<pathbin>/perl-nocem with the correct path to perl-nocem, located in <pathbin>. Then, reload the newsfeeds file ("ctlinnd reload newsfeeds 'NoCeM channel feed'"). Note that you should at least carry news.lists.filters on your news server (or other newsgroups where NoCeM notices are sent) if you wish to process them. 4. Everything should now work. However, do not hesitate to manually test perl-nocem with a NoCeM notice, using: grephistory '<Message-ID>' | perl-nocem Indeed, perl-nocem expects tokens on its standard input, and grephistory can easily give it the token of a known article, thanks to its Message-ID. When you have verified that everything works, you can eventually turn off regular spam cancels, if you want, not processing any longer cancels containing "cyberspam" in the Path: header (see the refusecybercancels parameter in inn.conf). FILES
pathbin/perl-nocem The Perl script itself used to process NoCeM notices. pathetc/nocem.ctl The configuration file which specifies the NoCeM notices to be processed. pathetc/pgp/ncmring.gpg The keyring which contains the public keys of trusted NoCeM issuers. BUGS
The Subject: header is not checked for the @@NCM string and there is no check for the presence of the References: header. The Newsgroups: pseudo header is not checked, but this can be done in local_want_cancel_id(). The Hierarchies: header is ignored. HISTORY
Copyright 2000 by Miquel van Smoorenburg <miquels@cistron.nl>. Copyright 2001 by Marco d'Itri <md@linux.it>. $Id: perl-nocem.in 8539 2009-06-28 10:01:24Z iulius $ SEE ALSO
gpgv(1), grephistory(1), inn.conf(5), newsfeeds(5), pgp(1). INN 2.5.3 2009-08-16 PERL-NOCEM(8)