Bash globbing files only?
Daniel Qarras
dqarras at yahoo.com
Mon Jan 29 06:27:00 UTC 2007
Hi!
> > Yep, that would work, but I guess my question was a bit poorly
> > formulated. I am writing a bash script that has:
> >
> > dirs=[^.]*/
> >
> > and I'd like to have "files=..." without using find or other
> external
> > commands if at all possible.
> >
> > Thanks.
> >
>
> Of course the best way is with the find command, being
>
> find / -type f
>
> Any reason why you'd rather use ls instead of find?
I want just the files from the current directory, not from any subdir.
And I'd prefer some bash globbing if possible for performance/elegancy
reasons :)
Thanks.
____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com
More information about the fedora-list
mailing list