From owner-freebsd-questions@FreeBSD.ORG Wed Jan 17 19:43:45 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 8AFE116A415 for ; Wed, 17 Jan 2007 19:43:45 +0000 (UTC) (envelope-from joshua.lewis@familyfunzone.net) Received: from smtpout07-04.prod.mesa1.secureserver.net (smtpout07-01.prod.mesa1.secureserver.net [64.202.165.230]) by mx1.freebsd.org (Postfix) with SMTP id 6C31513C467 for ; Wed, 17 Jan 2007 19:43:45 +0000 (UTC) (envelope-from joshua.lewis@familyfunzone.net) Received: (qmail 17944 invoked from network); 17 Jan 2007 19:15:51 -0000 Received: from unknown (64.57.168.66) by smtpout07-04.prod.mesa1.secureserver.net (64.202.165.233) with ESMTP; 17 Jan 2007 19:15:51 -0000 Mime-Version: 1.0 (Apple Message framework v752.2) To: freebsd-questions@freebsd.org Message-Id: From: Joshua Lewis Date: Wed, 17 Jan 2007 14:15:50 -0500 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 Subject: 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 19:43:45 -0000 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