Date: Wed, 14 Mar 2007 07:33:47 -0700 From: Garrett Cooper <youshi10@u.washington.edu> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: Need a good Unix script that.. Message-ID: <FA964881-966F-4C0F-93C4-CD480FA89B71@u.washington.edu> 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
On Mar 14, 2007, at 2:56 AM, bstitt@tsys.com 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 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 As mentioned, when doing simple regex replacements in Unix, some good languages / programs to use are: grep <- extraction only sed <- simple extraction / replacement perl <- the kitchen sink -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?FA964881-966F-4C0F-93C4-CD480FA89B71>