From owner-freebsd-questions@FreeBSD.ORG Wed Jan 17 21:08:00 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 9865016A407 for ; Wed, 17 Jan 2007 21:08:00 +0000 (UTC) (envelope-from gregoryba@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 33E5E13C4A6 for ; Wed, 17 Jan 2007 21:08:00 +0000 (UTC) (envelope-from gregoryba@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so297663nfc for ; Wed, 17 Jan 2007 13:07:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ex7tBqq7PxChRG9YXn8/UggsCqxZZGDgwbDVFgsMLRKw+YlfViH3f7LqKv5LMMx0yIUuFEgrmG0tqlDEDHJz/I7mxLFw4jQK+HHHBva8zlnE3SIjS22WXUrAUaHBYKSMBFAckzOfoZU9uY9R6DEYmMSdk3WLIzqmQPzEg0zEcGI= Received: by 10.49.57.12 with SMTP id j12mr408528nfk.1169068078476; Wed, 17 Jan 2007 13:07:58 -0800 (PST) Received: by 10.48.223.12 with HTTP; Wed, 17 Jan 2007 13:07:58 -0800 (PST) Message-ID: <39ed86f90701171307u7482495co56d270b82738aefe@mail.gmail.com> Date: Wed, 17 Jan 2007 13:07:58 -0800 From: "Greg Albrecht" To: "Joshua Lewis" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <39ed86f90701171215u56acb7c8y49a2c5eb840d0b13@mail.gmail.com> 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 21:08:00 -0000 try to 'sudo su' first, then run the grep. -g On 17/01/07, Joshua Lewis wrote: > > 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 > > > -- Greg Albrecht (gregoryba@gmail.com) An Indie, Hip Hop and IDM Podcast: The Letter G http://theletterg.org