--- Gerald Timothy Quimpo <[EMAIL PROTECTED]> wrote:
> On Thursday 12 December 2002 12:35 pm, Andre M. V.
> i still have a problem though, when i do:
> 
> mkdir test
> cd test
> mkdir "11 22"
> mkdir "aa bb"
> 
> for fn in `ls -Q`
> do
>       echo $fn
> done
> 

use while read instead

sample script to print all directories including with
spaces

#!/bin/sh

ls -F | grep / | 
while read a; do
echo $a
done


sample output
a b c/
amibios/
anime/

ofcourse maraming way pa but....

hope that helps

-dek

.com

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to