From owner-freebsd-questions@FreeBSD.ORG Wed Jan 17 20:15:03 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 AD25816A49E for ; Wed, 17 Jan 2007 20:15:03 +0000 (UTC) (envelope-from gregoryba@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 3547313C44C for ; Wed, 17 Jan 2007 20:15:03 +0000 (UTC) (envelope-from gregoryba@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so285155nfc for ; Wed, 17 Jan 2007 12:15:02 -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=KCyJAoIQpahFKd00l2MIgBd3EpqUW/k6pbOaVSxVvbkmR7KXcxtigqw+fGymRVfpuHNYjpBEA1VrGTeGyIXyknPLsR4bciExXb5eG2hS058le6h6w344ONbXnvPeYxdF2BfReLgg2MTVa3IVBh45PuCaYTitKoJbJhUW9W89YqA= Received: by 10.49.75.2 with SMTP id c2mr511696nfl.1169064901487; Wed, 17 Jan 2007 12:15:01 -0800 (PST) Received: by 10.48.223.12 with HTTP; Wed, 17 Jan 2007 12:15:01 -0800 (PST) Message-ID: <39ed86f90701171215u56acb7c8y49a2c5eb840d0b13@mail.gmail.com> Date: Wed, 17 Jan 2007 12:15:01 -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: 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:15:03 -0000 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