On Thu, 11 Nov 1999, John Horne wrote:
> Hello,
>
> I have a small script which uses the find command to locate files and then
> does an 'ls -lAd' on them (don't ask why, it's not important). This however
> has failed nicely when it hits files with spaces in them!
>
> I have as a test:
>
> for FNAME in `find /tmp -type f -maxdepth 1 -printf '"%p"\n' `; do
> ls -l "$FNAME"
> done
>
Change it to the following:
find /tmp -type f -maxdepth 1 -printf '"%p"\n' |
while read FNAME
do
ls -l "$FNAME"
done
--
John Darrah (u05192) | Dept: N/C Programming
Giddens Industries | Ph: (425) 353-0405 #229
PO box 3190 | Ph: (206) 767-4212 #229
Everett WA 98203 | Fx: (206) 764-9639
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.