Re: sed or awk replace a line containing Subject
From: Alan Connor (zzzzzz_at_xxx.yyy)
Date: 10/27/03
- Previous message: Joseph: "sed or awk replace a line containing Subject"
- In reply to: Joseph: "sed or awk replace a line containing Subject"
- Next in thread: Bill Marcum: "Re: sed or awk replace a line containing Subject"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 27 Oct 2003 01:59:05 GMT
On 26 Oct 2003 17:25:13 -0800, Joseph <jcharth@hotmail.com> wrote:
>
>
> Hi I am trying to write a script to scan some mail files for spam and
> then replace the subject line.
> can i do this with awk or sed.
>
> my mail file contains the line Subject: Happy Birthday
> how can i write a bash script to replace all lines containig Subject:
> to something like
> Subject: SPAM
> thanks.
sed 's/Subject: Happy Birthday/Subject: SPAM/' inputfile > tempfile
mv tempfile inputfile.
Now what are you going to do with it?
-- Alan C Post validation at http://tinyurl.com/rv0y
- Previous message: Joseph: "sed or awk replace a line containing Subject"
- In reply to: Joseph: "sed or awk replace a line containing Subject"
- Next in thread: Bill Marcum: "Re: sed or awk replace a line containing Subject"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|