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/???/servermyname # 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 [EMAIL PROTECTED]
The Power to Serve, Right for the Power Users! - http://www.FreeBSD.org/
Fingerprint: EB77 E19D CFA2 5736 810F 847C A70F A275 2489 469F
msg20208/pgp0.pgp
Description: PGP signature