On Tue, Aug 13, 2002 at 11:26:25AM +1000, Hartono, Susanto wrote:

> Something along this line should suffice..
> 
> #!/bin/sh
> for file in $HOME/*; do echo $file; done

That'll only work on non-hidden files, unless the shell option dotglob
is set (shopt -s dotglob, off by default).  If you want all files, you
can use:

    for file in `find . -type f -maxdepth 1`; do ...; done



Cheers,

John
-- 
whois [EMAIL PROTECTED]
GPG key id: 0xD59C360F
http://kirriwa.net/john/
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to