Date: Mon, 05 Feb 2001 21:47:03 GMT From: Salvo Bartolotta <bartequi@inwind.it> To: Cliff Sarginson <cliff@raggedclown.net> Cc: Joe.Warner@smed.com, lucas@slb.to, freebsd-questions@FreeBSD.ORG Subject: Re: Help me make FreeBSD shine Message-ID: <20010205.21470300@bartequi.ottodomain.org> In-Reply-To: <20010205214713.A1054@raggedclown.net> References: <852569EA.005F58D2.00@Deimos.smed.com> <20010205214713.A1054@raggedclown.net>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 2/5/01, 9:47:14 PM, Cliff Sarginson <cliff@raggedclown.net> wrote=20 regarding Re: Help me make FreeBSD shine: > On Mon, Feb 05, 2001 at 10:25:14AM -0700, Joe.Warner@smed.com wrote: > > > > > > Hey thanks! > > > > Right now, I'm just starting with something simple. > > > > I created this script: > > > > #!/bin/sh > > > > grep -v "#" /etc/hosts | awk '{print $1}'=20 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ You could simply say ``awk '$1 !~ "#" {print $1}' /etc/hosts'',=20 couldn't you? Am I missing something ? Incidentally, what action would ``grep -v [...]'' perform on such a=20 line as the following ? =20 <one-liner> ...blah blah... # brief comment on blah blah </one-liner> Is this what you expect from ``grep -v "#" <some_file>''?=20 Best regards, Salvo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010205.21470300>