|
a: [%cast.r %feedback.r %ftp.r %ftp.r~ %instinet.r
%instinet.r~ %lconfig.r %lconfig.r~ %nntp.r %notes.html %rebdoc.r
%rebol.exe] foreach file a [if find/match/any file "*.r~" [print ["found one:
" :file]]]
OR
a: [%cast.r %feedback.r %ftp.r %ftp.r~ %instinet.r
%instinet.r~ %lconfig.r %lconfig.r~ %nntp.r %notes.html %rebdoc.r
%rebol.exe] pattern: "*.r~" foreach file a [if find/match/any file pattern
[print ["found one: " :file]]]
OR for looking directly at the systems
directories
files: read %. pattern: "*.cgi" foreach file files [if
find/match/any file pattern [print ["found one: " :file]]]
found one: demo.cgi found one: printenv.cgi found one:
webenv.cgi found one: test.cgi found one: man.cgi found one:
fetchurl.cgi found one: hw2test.cgi found one: wx.cgi found one:
reb_fetch.cgi found one: fxhtml.cgi
----- Original Message -----
Sent: Thursday, September 07, 2000 8:17
AM
Subject: [REBOL] Second request for help:
globbing on a block of filenames
I have a block which contains filenames. I would like to get a
true or false value back indicating whether or not there is a filename in the
block that terminates with a r~ extension.
Please show me how to do
this.
>> a == [%cast.r %feedback.r %ftp.r %ftp.r~ %instinet.r
%instinet.r~ %lconfig.r %lconfig.r~ %nntp.r %notes.html
%rebdoc.r %rebol.exe %re...
Could someone show me how to glob for
feedback.r?
In other words, I want to say
Get your FREE
Email and Voicemail at Lycos Communications at http://comm.lycos.com
|