From owner-freebsd-questions Thu Feb 20 13:16: 0 2003 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 A61AD37B401 for ; Thu, 20 Feb 2003 13:15:58 -0800 (PST) Received: from hotmail.com (oe65.law12.hotmail.com [64.4.18.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id E341043FAF for ; Thu, 20 Feb 2003 13:15:57 -0800 (PST) (envelope-from b1henning@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 20 Feb 2003 13:15:57 -0800 X-Originating-IP: [192.216.212.193] From: "Brian Henning" To: "freebsd" Subject: OT: shell script problem Date: Thu, 20 Feb 2003 15:14:22 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: X-OriginalArrivalTime: 20 Feb 2003 21:15:57.0768 (UTC) FILETIME=[42CF1480:01C2D925] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG i have this script with one input file and i keep getting the error: /files_???/19980527/???????/myname # sh doc_id.sh input.txt /files_???/19980527/???????/: No such file or directory /files_???/19980527/???????/ sh doc_id.sh ------------- #! /bin/sh -x INPUT=$1 for i in `cat $INPUT`; do echo "ls -1 ${i}" RES=`ls -1 ${i}` done exit 0; input.txt -------- /files_???/19980527/???????/ but when i run the command ls /files_???/19980527/???????/ the files are found... any suggestions? brian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message