<Ara.T.Howard@noaa.gov> schrieb im Newsbeitrag news:Pine.LNX.4.60.0409241549420.12609@harp.ngdc.noaa.gov...
this might be of help
harp:~/eg/ruby > ruby -e 'p Dir["**/*"]'
["vsdb", "vsdb/vsdb-0.0.0", "vsdb/vsdb-0.0.0/ruby_vsdb.c", "vsdb/vsdb-0.0.0/mkmf.log", "vsdb/vsdb-0.0.0/extconf.rb", "vsdb/vsdb-0.0.0/Makefile", "vsdb/vsdb-0.0.0/ruby_vsdb.o", "vsdb/vsdb-0.0.0/vsdb.so", "vsdb/vsdb-0.0.0/vsdb", "vsdb/vsdb-0.0.0/vsdb/dbd.13", "vsdb/vsdb-0.0.0/vsdb/dbd.13/db.13", "vsdb/vsdb-0.0.0/vsdb/db.cache", "vsdb/vsdb-0.0.0/test.rb", "vsdb/vsdb-0.0.0/core.9780", "vsdb/vsdb-0.0.0/core.9781", "vsdb/vsdb-0.0.0/core.9791", "vsdb/vsdb-0.0.0/core.9823", "vsdb/vsdb-0.0.0/jib", "vsdb/vsdb-0.0.0/vsdb_test.rb", "templates", "templates/main1.rb", "templates/inc.rb", "templates/class.rb", "templates/test.rb", "templates/main0.rb", "templates/out", "templates/foo", "templates/stp", "templates/stp/inc.rb", "templates/stp/class.rb", "templates/foo-0.0.0", "templates/foo-0.0.0/lib", "templates/foo-0.0.0/lib/foo-0.0.0", "templates/foo-0.0.0/lib/foo-0.0.0/bar.rb", "templates/foo-0.0.0/lib/foo-0.0.0.rb", "templates/lib", "templates/lib/foo-0.0.0", "templates/lib/foo-0.0.0/bar.rb", "templates/lib/foo-0.0.0.rb", "templates/lib/foo.rb", "templates/main2.rb", "templates/install.rb", "templates/foobar", "templates/newclass", "templates/newinc", "templates/newmain", "templates/main4.rb", "templates/main3.rb", "templates/main5.rb", "templates/doc", "templates/doc/created.rid", "templates/doc/rdoc-style.css", "templates/doc/files", "templates/doc/files/logging_rb.html", "templates/doc/classes", "templates/doc/classes/c.src", "templates/doc/classes/c.src/M000001.html", "templates/doc/classes/c.src/M000002.html", "templates/doc/classes/LogMethods.src", "templates/doc/classes/LogMethods.src/M000003.html", "templates/doc/classes/LogMethods.src/M000004.html", "templates/doc/classes/LogMethods.src/M000005.html", "templates/doc/classes/LogMethods.src/M000006.html", "templates/doc/classes/LogMethods.src/M000007.html", "templates/doc/classes/LogMethods.src/M000008.html", "templates/doc/classes/LogMethods.src/M000009.html", "templates/doc/classes/LogMethods.src/M000010.html", "templates/doc/classes/LogMethods.src/M000011.html", "templates/doc/classes/LogMethods.src/M000012.html", "templates/doc/classes/LogMethods.src/M000013.html", "templates/doc/classes/Logging.src", "templates/doc/classes/Logging.src/M000014.html", "templates/doc/classes/A.html", "templates/doc/classes/c.html", "templates/doc/classes/LoggerExt.html", "templates/doc/classes/LogMethods.html", "templates/doc/classes/Logging.html", "templates/doc/fr_file_index.html", "templates/doc/fr_class_index.html", "templates/doc/fr_method_index.html", "templates/doc/index.html", "templates/stdout", "templates/log", "templates/logging.rb", "templates/util.rb", "templates/quote.rb", "templates/log.20040613", "templates/log.0", "templates/log.1", "templates/=main5.rb.conf", "templates/main5.rb.conf", "rq-all", "rq-all/packages", "rq-all/packages/sqlite-ruby-1.3.1.tar.gz", "rq-all/packages/posixlock-0.0.1.tgz", "rq-all/packages/arrayfields-3.4.0.tgz", "rq-all/packages/lockfile-1.1.0.tgz", "rq-all/packages/sqlite-2.8.15.tar.gz", "rq-all/packages/ruby-1.8.1.tar.gz", "rq-all/packages/rq-0.1.5.tgz", "rq-all/install.sh", "rq-all/README", "rq-all.tgz"]
There is also Find:
require 'find'
=> true
Find.find(".") {|*a| p a}
["."]
["./test"]
["./test/test-file.txt"]
["./test/t.rb"]
["./test/gsub-bm.rb"]
["./lib"]
["./lib/ruby"]
["./lib/ruby/WWParser.rb"]
["./lib/ruby/verbose2.rb"]
["./lib/ruby/verbose.rb"]
["./lib/ruby/TriesTest.rb"]
["./lib/ruby/Tries.rb"]
["./lib/ruby/Scanner.rb"]
["./lib/ruby/RandomSet.rb"]
["./lib/ruby/InstanceCache.rb"]
["./lib/ruby/generator.rb"]
["./lib/ruby/FileNames.rb"]
["./lib/ruby/ExtendedEnumerable.r
["./lib/ruby/Dependency.rb"]
["./lib/ruby/Associations.rb"]
["./foo"]
["./bin"]
["./bin/marshal-test.rb.bak"]
["./bin/marshal-test.rb"]
["./bin/marshal-test.bak"]
["./bin/marshal-test-bm.rb.bak"]
["./bin/marshal-test-bm.rb"]
["./bin/find-files.rb"]
["./bin/find-files.bak"]
["./.xinitrc"]
["./.inputrc"]
["./.fvwm"]
["./.fvwm/.fvwm2rc~"]
["./.fvwm/.fvwm2rc.bak"]
["./.fvwm/.fvwm2rc"]
["./.fonts.cache-1"]
["./.file.cache"]
["./.emacs~"]
["./.emacs.d"]
["./.emacs.d/auto-save-list"]
["./.emacs"]
["./.cvspass"]
["./.bash_profile"]
["./.bash_history"]
["./.bashrc"]
["./.aliases"]
=> nil
robert
···
On Sat, 25 Sep 2004, STEPHEN BECKER I V wrote: