[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)

From: David Raleigh Arnold
Subject: (no subject)
Date: Mon, 14 Jan 2002 08:55:46 -0600 (CST)
User-agent: IMP/PHP IMAP webmail program 2.2.5

Thanks anyway, all. sed is the best choice for filter, and the
implementation is simple. I'll get back to this this weekend,
but for those who can't wait. :-)

# create ptfilter.sed first. It can be empty, but
# I think it has to exist.

gawk 'BEGIN {FS=";"}{print $1}' $1 > $
cat  $ | sed -f ptfiler.sed > $

If it doesn't work, sorry. Something similar will.
No time right now.

s is for substitute, g is for global.
in ptfilter.sed, sed commands. Entries like this:

s/inputString/text to be substituted/g

You have to escape \$ and some other things in your
input string part of the command, but if you know
regular expressions you're in tall cotton.

Thanks Joerg Anders. for the gawk code. (Not this here
but better.)

Point is that everything works.  :-)
Information is not knowledge.           Belief is not truth.
Indoctrination is not teaching.   Tradition is not evidence.
         David Raleigh Arnold   address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]