On Fri, 12 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
Try using the following loop instead:
find /tmp -type f -maxdepth 1 -printf '%p\n' |
while read FNAME
do
ls -l "$FNAME"
done
---
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.