From owner-freebsd-questions@FreeBSD.ORG Wed Jan 17 20:52:59 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C07C616A415 for ; Wed, 17 Jan 2007 20:52:59 +0000 (UTC) (envelope-from joshua.lewis@familyfunzone.net) Received: from smtpout08-04.prod.mesa1.secureserver.net (smtpout08-04.prod.mesa1.secureserver.net [64.202.165.12]) by mx1.freebsd.org (Postfix) with SMTP id 9EC6413C459 for ; Wed, 17 Jan 2007 20:52:59 +0000 (UTC) (envelope-from joshua.lewis@familyfunzone.net) Received: (qmail 17471 invoked from network); 17 Jan 2007 20:52:58 -0000 Received: from unknown (64.57.168.66) by smtpout08-04.prod.mesa1.secureserver.net (64.202.165.12) with ESMTP; 17 Jan 2007 20:52:57 -0000 In-Reply-To: <39ed86f90701171215u56acb7c8y49a2c5eb840d0b13@mail.gmail.com> References: <39ed86f90701171215u56acb7c8y49a2c5eb840d0b13@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.2) Message-Id: From: Joshua Lewis Date: Wed, 17 Jan 2007 15:52:54 -0500 To: Greg Albrecht X-Mailer: Apple Mail (2.752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Grep a file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jan 2007 20:52:59 -0000 When I run: sudo grep -v '^\;'extentions.conf > new_extentions.conf I get: -bash: new_extentions.conf: Permission denied Sincerely, Joshua Lewis joshua.lewis@familyfunzone.net On Jan 17, 2007, at 3:15 PM, Greg Albrecht wrote: > this might work: > > grep -v '^\;' originalfile > newfile > > -g > > On 17/01/07, Joshua Lewis wrote: >> I have a config file that uses ; as a comment character. >> Unfortunately there are soooooooo many comments I can't read the >> options that have been enabled. >> >> Can I use grep or another tool to pull all the lines in this file >> that do not start with the ; and place them into another file so I >> can actually read what this file is doing? >> >> Thanks for any help. >> >> >> >> Sincerely, >> Joshua Lewis >> joshua.lewis@familyfunzone.net >> >> >> >> _______________________________________________ >> 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" >> > > > -- > Greg Albrecht (gregoryba@gmail.com) > An Indie, Hip Hop and IDM Podcast: The Letter G > http://theletterg.org >