RE: [e-smith-devinfo] procmail help

2001-07-25 Thread Trevor Ouellette
Great! Between your code Dan and Benjamin's... I think I can finish my script! Trev. -Original Message- From: Dan Brown [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 5:28 PM To: Trevor Ouellette Cc: e-smith-devinfo Subject: RE: [e-smith-devinfo] procmail help Qu

RE: [e-smith-devinfo] procmail help

2001-07-25 Thread Dan Brown
Quoting Trevor Ouellette <[EMAIL PROTECTED]>: > If anyone has the time, please point me in the right direction. I've > already looked at grep and egrep but I don't know how to pipe (|) a lot I don't know about changing; I'm sure awk or sed could do what you're looking for, but I don't know

Re: [e-smith-devinfo] procmail help

2001-07-25 Thread Benjamin Lee
I would use Perl. perl -pi -e 's|\Qkey phrase\E|new sentence|gi;' This is perl at its simplest (equivalent to a hello world program!) so I point you to http://www.google.com/. On Wed, Jul 25, 2001 at 05:11:40PM -0600, Trevor Ouellette wrote: > Quick question... > > I want to write a bash s

RE: [e-smith-devinfo] procmail help

2001-07-25 Thread Trevor Ouellette
Quick question... I want to write a bash script that can modify a file. I want to be able to search through a file until it reaches a key phrase or words. Then I want to delete the whole line or replace the key phrase. If anyone has the time, please point me in the right direction. I've alrea

Re: [e-smith-devinfo] procmail help

2001-07-25 Thread Benjamin Lee
On Wed, Jul 25, 2001 at 06:02:33PM -, Darrell May wrote: > Hi everyone. I want to try to use procmail and wonder if someone who is > using it already could share their wisdom. Here is what little I know so > far: > > Step 1: > ~user/.qmail needs to be edited replacing ./Maildir with: >