From owner-freebsd-questions Fri Feb 21 12:25:29 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 B2AC737B405 for ; Fri, 21 Feb 2003 12:25:27 -0800 (PST) Received: from prioris.mini.pw.edu.pl (prioris.mini.pw.edu.pl [194.29.178.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64A7843FBF for ; Fri, 21 Feb 2003 12:25:26 -0800 (PST) (envelope-from G.Czaplinski@prioris.mini.pw.edu.pl) Received: from localhost (localhost.mini.pw.edu.pl [127.0.0.1]) by prioris.mini.pw.edu.pl (Postfix) with ESMTP id E12257D2F6; Fri, 21 Feb 2003 21:25:24 +0100 (CET) Received: by prioris.mini.pw.edu.pl (Postfix, from userid 1368) id 141FD7D009; Fri, 21 Feb 2003 21:25:16 +0100 (CET) Date: Fri, 21 Feb 2003 21:25:15 +0100 From: Grzegorz Czaplinski To: Brian Henning Cc: freebsd Subject: Re: OT: shell script problem Message-ID: <20030221202515.GE66987@prioris.mini.pw.edu.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8TaQrIeukR7mmbKf" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-PGP: http://prioris.mini.pw.edu.pl/~gregory/pgp.txt X-Virus-Scanned: by AMaViS (prioris) 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 --8TaQrIeukR7mmbKf Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 20, 2003 at 03:14:22PM -0600, Brian Henning wrote: > 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/???????/ >=20 > sh doc_id.sh > ------------- > #! /bin/sh -x >=20 > INPUT=3D$1 >=20 > for i in `cat $INPUT`; do > echo "ls -1 ${i}" > RES=3D`ls -1 ${i}` > done > exit 0; >=20 >=20 > input.txt > -------- > /files_???/19980527/???????/ >=20 > but when i run the command ls /files_???/19980527/???????/ the files are > found... >=20 > any suggestions? Yes, change cat to echo. Have fun! Greg -- Grzegorz Czaplinski "The Power to Serve, Right for the Power Users!" - http://www.FreeBSD.org/ Fingerprint: EB77 E19D CFA2 5736 810F 847C A70F A275 2489 469F --8TaQrIeukR7mmbKf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAj5WiysACgkQpw+idSSJRp/2hwCg09byrU43kAAfY+UJVuJuv7el K44AoJp3leOM18oaMkXLFKK/34Hv/AUP =nhji -----END PGP SIGNATURE----- --8TaQrIeukR7mmbKf-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message