Re: Need a good Unix script that..

2007-03-14 Thread Bob Hall
On Wed, Mar 14, 2007 at 05:56:26AM -0400, [EMAIL PROTECTED] wrote: > Hello, > > I'm trying to write a script to delete all line that include a certain > pattern in an output file. I sending information to one of our Security > people and they take this data and create a spreadsheet on the > inf

Re: Need a good Unix script that..

2007-03-14 Thread Kurt Buff
[EMAIL PROTECTED] wrote: Hello, I'm trying to write a script to delete all line that include a certain pattern in an output file. I sending information to one of our Security people and they take this data and create a spreadsheet on the information, I have a constant reoccurring lines within

Re: Need a good Unix script that..

2007-03-14 Thread Garrett Cooper
On Mar 14, 2007, at 2:56 AM, [EMAIL PROTECTED] wrote: Hello, I'm trying to write a script to delete all line that include a certain pattern in an output file. I sending information to one of our Security people and they take this data and create a spreadsheet on the information, I have a con

Re: Need a good Unix script that..

2007-03-14 Thread Konrad Heuer
On Wed, 14 Mar 2007, Christian Walther wrote: On 14/03/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I'm trying to write a script to delete all line that include a certain pattern in an output file. I sending information to one of our Security people and they take this data and create a sp

Re: Need a good Unix script that..

2007-03-14 Thread Roger Olofsson
Hello Bruce, Without knowing more, may I suggest that you take a look at awk for doing this? You can combine awk and sed if you like. There's a good starting point at http://www.linuxfocus.org/English/September1999/article103.html Good luck! [EMAIL PROTECTED] skrev: Hello, I'm trying to

Re: Need a good Unix script that..

2007-03-14 Thread alex
Why not use Perl? It'd be as simple as: #!/usr/bin/perl use strict; open(IN, "$ARGV[0]") || die "Can't open $ARGV[0]: $!\n"; while () { print $_ unless ($_ =~ /don't want>/); } close IN; Save this script as "filter.pl" (or whatever you want to call it), and then just run "perl filter.pl

Re: Need a good Unix script that..

2007-03-14 Thread Christian Walther
On 14/03/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hello, I'm trying to write a script to delete all line that include a certain pattern in an output file. I sending information to one of our Security people and they take this data and create a spreadsheet on the information, I have a con

Need a good Unix script that..

2007-03-14 Thread bstitt
Hello, I'm trying to write a script to delete all line that include a certain pattern in an output file. I sending information to one of our Security people and they take this data and create a spreadsheet on the information, I have a constant reoccurring lines within the output file that they

Re: Need a good Unix script that..

2005-07-29 Thread Chuck Swiger
Michael Sharp wrote: I need a simple sh script that will daily (via cron) crawl a website looking for multiple keywords, then reporting those keyword results and URL to an email address. Anyone know of a pre-written script that does this, or point me in the right direction in using the FreeBSD c

Need a good Unix script that..

2005-07-29 Thread Michael Sharp
I need a simple sh script that will daily (via cron) crawl a website looking for multiple keywords, then reporting those keyword results and URL to an email address. Anyone know of a pre-written script that does this, or point me in the right direction in using the FreeBSD core commands that can a