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
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
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 (IN) {
print $_ unless ($_ =~ /regular expression describing lines you
don't want/);
}
close IN;
Save this script as filter.pl (or whatever you want to call
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
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
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
[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
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
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
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
10 matches
Mail list logo