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>

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

[-- Attachment #1 --]
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/???????/
> 
> 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?

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

[-- Attachment #2 --]
-----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-----
help

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