Date: Wed, 14 Mar 2007 12:35:43 +0100 From: Roger Olofsson <raggen@passagen.se> To: bstitt@tsys.com Cc: freebsd-questions@freebsd.org Subject: Re: Need a good Unix script that.. Message-ID: <45F7DE0F.5020600@passagen.se> In-Reply-To: <OF41E635D9.5C37421A-ON8525729E.0035F7CA-8525729E.003C4080@tsys.com> References: <OF41E635D9.5C37421A-ON8525729E.0035F7CA-8525729E.003C4080@tsys.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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! bstitt@tsys.com skrev: > 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 do not need. I'm trying to use the sed command to remove lines > that fits a certain pattern but it does not appear to remove anything. > > Any helpful ideas or any useful links to scripts. > > Thanks so much.. > > Bruce Stitt > TSYS Hosting Services > Voice 706-644-0965 > > ----------------------------------------- > The information contained in this communication (including any > attachments hereto) is confidential and is intended solely for the > personal and confidential use of the individual or entity to whom > it is addressed. The information may also constitute a legally > privileged confidential communication. If the reader of this > message is not the intended recipient or an agent responsible for > delivering it to the intended recipient, you are hereby notified > that you have received this communication in error and that any > review, dissemination, copying, or unauthorized use of this > information, or the taking of any action in reliance on the > contents of this information is strictly prohibited. If you have > received this communication in error, please notify us immediately > by e-mail, and delete the original message. Thank you > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45F7DE0F.5020600>