From owner-freebsd-questions@FreeBSD.ORG Sun Apr 9 08:56:50 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 0B98216A401 for ; Sun, 9 Apr 2006 08:56:50 +0000 (UTC) (envelope-from mfitzgerald@pacific.net.au) Received: from jay.exetel.com.au (jay.exetel.com.au [220.233.0.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4770643D45 for ; Sun, 9 Apr 2006 08:56:48 +0000 (GMT) (envelope-from mfitzgerald@pacific.net.au) Received: (qmail 31623 invoked by uid 507); 9 Apr 2006 18:56:47 +1000 Received: from 28.101.233.220.exetel.com.au (HELO ?192.168.1.100?) (220.233.101.28) by jay.exetel.com.au with SMTP; 9 Apr 2006 18:56:47 +1000 Mime-Version: 1.0 (Apple Message framework v623) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-questions@FreeBSD. ORG From: Malcolm Fitzgerald Date: Sun, 9 Apr 2006 18:56:46 +1000 X-Mailer: Apple Mail (2.623) Cc: Subject: 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 08:56:50 -0000 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