From owner-freebsd-questions@FreeBSD.ORG Sun Apr 9 11:25:06 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B136616A400 for ; Sun, 9 Apr 2006 11:25:06 +0000 (UTC) (envelope-from ldrada@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07F0C43D45 for ; Sun, 9 Apr 2006 11:25:05 +0000 (GMT) (envelope-from ldrada@gmail.com) Received: by nproxy.gmail.com with SMTP id m18so516951nfc for ; Sun, 09 Apr 2006 04:25:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=h9hwW5aE5gSSY4cAEUM8ehoh3c4InyeRYTxkiDyRL4Jrj6MwFLbkPBJPGPmy/0Pw79oFeLyxKv2thuIPD0ncZ6G40kiQ7BG6dac266x6bKyCKpF7ns/X4KuyYL1cd80UNFun2Z9c4lvfoxbAo6N9jJlAIQ5FGfCzTfQAbQ2kYCs= Received: by 10.49.90.20 with SMTP id s20mr177042nfl; Sun, 09 Apr 2006 04:25:05 -0700 (PDT) Received: by 10.49.5.6 with HTTP; Sun, 9 Apr 2006 04:24:50 -0700 (PDT) Message-ID: <5ceb5d550604090424i3f3fa9b2p2077316885aac219@mail.gmail.com> Date: Sun, 9 Apr 2006 13:24:50 +0200 From: "Daniel A." To: "Malcolm Fitzgerald" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Cc: "freebsd-questions @ FreeBSD. ORG" Subject: Re: Shell scripting question [newby] 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: Sun, 09 Apr 2006 11:25:06 -0000 On 4/9/06, Malcolm Fitzgerald wrote: > I'm trying to follow the instructions at > > > At point four it offers this shell script. > > cut -f 1 -d '$' /usr/local/freebsd-update/work/md5all | uniq | > while read X; do > if [ -f $X ]; then echo $X; fi; > done | sort > /root/base-old > > Running this from root shell in konsole (bash) I get "while: Expression > Syntax". The various hints and clues I get from the shell, the web and > man bash haven't helped me. Would someone provide the correct syntax > for me? > > > thanks > > malcolm > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > Are you sure it shouldnt be "$X" instead of "X" in the while clause? I dont know, never tried bash scripting before :)