10-15-2005
not sure context is right
I am using a spam filter which has drop downs which let you choose what part of the e-mail you want to examine and then either 'matches' or 'contains' and then a 'pattern'. In the 'pattern' you can use regular expressions so I don't have to key in grep or any file names. The way this seems to work is that if I put in the pattern say
abc
and tell it to reject all e-mails where the subject line contains this pattern, it will reject any subject line with a or b or c in it.
I am guessing (and i won't be able to try it out till monday) that if i put in
"abc"
it will reject e-mails with abc all together in the subject line... sorry this is probably not what this forum is all about but you are the only place i have found where it seems i can get some real help. Looking forward to trying it all out on Monday and will let you know how it goes.
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm trying to get one field out of many as follows:
A string of multiple fields separated with "/" characters:
"/ab=12/cd=34/12=ab/34=cd/ef=pick-this.one/gh=blah/ij=something/"
I want to pick up the field "ef=pick-this.one" which has no regular pattern except it starts with "ef=xxxx"... (3 Replies)
Discussion started by: Juha
3 Replies
2. Shell Programming and Scripting
I am trying to match a pattern exactly in a shell script. I have tried two methods
awk '/\<mpath${CURR_MP}\>/{print $1 $2}' multipath
perl -ne '/\bmpath${CURR_MP}\b/ and print' /var/tmp/multipath
Both these methods require that I use the escape character. I am guessing that is why... (8 Replies)
Discussion started by: bash_in_my_head
8 Replies
3. Shell Programming and Scripting
I have tried to make this script to generate:
000
001
002
...
997
998
999
i=0
while
do
if
then
echo "00"$i
else if &&
then
echo "0"$i (5 Replies)
Discussion started by: locoroco
5 Replies
4. Shell Programming and Scripting
How to say "match anything but this or that string" using only posix extended syntax? I am not talking about egrep -v, I want this done entirely by the regular expression. Thanks (7 Replies)
Discussion started by: stevensw
7 Replies
5. Shell Programming and Scripting
Hi all,
Here is the data file:
- want to match only lan3 in the output .
- not lan3:1
file :
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1
INTERFACE_NAME="lan3"
IP_ADDRESS="10.53.52.241"
SUBNET_MASK="255.255.255.192"
BROADCAST_ADDRESS=""
INTERFACE_STATE=""... (2 Replies)
Discussion started by: rveri
2 Replies
6. Shell Programming and Scripting
Hi All!!! :-)
I need a command that will print each line of a text file UNLESS the 3rd field of that line is equal to the number 999. (space seperated fields)
Solaris10/BASH SHELL:
INPUT.TXT
aaa bbb 111 222
ccc ddd 333 444
eee fff 999 555
ggg hhh 666 777
aaa bbb 999 222
ccc ddd 333... (7 Replies)
Discussion started by: ajp7701
7 Replies
7. Shell Programming and Scripting
I am formatting my code and for that I am trying to write a script which can quicken some repetitive work.
I need to match "==" exactly in a string and replace it by inserting a (single) blank space before and after it.
Sample Strings:
1.this.something =='something'.that... (9 Replies)
Discussion started by: prohank
9 Replies