From owner-freebsd-questions@FreeBSD.ORG Sun Dec 28 18:39:02 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBC2A16A4CE for ; Sun, 28 Dec 2003 18:39:02 -0800 (PST) Received: from lilzmailso01.liwest.at (lilzmailso01.liwest.at [212.33.55.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77F5943D1F for ; Sun, 28 Dec 2003 18:39:01 -0800 (PST) (envelope-from dgw@liwest.at) Received: from cm58-27.liwest.at ([212.33.58.27]) by lilzmailso01.liwest.at with esmtp (Exim 4.24) id 1AanJ5-0006co-RK for questions@freebsd.org; Mon, 29 Dec 2003 03:38:59 +0100 From: Daniela To: questions@freebsd.org Date: Mon, 29 Dec 2003 03:34:25 +0000 User-Agent: KMail/1.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312290334.25341.dgw@liwest.at> Subject: Complex quoting task in tcsh X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2003 02:39:03 -0000 I'm writing a tcsh script and I can't figure out how to escape that #. I tried all possible variations, and it always says I have a syntax error. Here's one: if ($line =~ "#*") Or is there another way to find out if the line starts with a hash mark? Regards, Daniela