Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2003 21:25:15 +0100
From:      Grzegorz Czaplinski <G.Czaplinski@prioris.mini.pw.edu.pl>
To:        Brian Henning <b1henning@hotmail.com>
Cc:        freebsd <freebsd-questions@FreeBSD.ORG>
Subject:   Re: OT: shell script problem
Message-ID:  <20030221202515.GE66987@prioris.mini.pw.edu.pl>
In-Reply-To: <OE658u16sa5LMgvR6bi000137c6@hotmail.com>
References:  <OE658u16sa5LMgvR6bi000137c6@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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/???????/<server>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 <gregory@prioris.mini.pw.edu.pl>
"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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030221202515.GE66987>