Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Delete files beginnig by ~

 [1/6] from: richard:coffre:francetelecom at: 18-Apr-2002 15:24


Librarian comment

This thread possibly pre-dates the delete/any refinement -- that handles wildcard deletions.

delete/any 

Hi, I need to delete files like ~toto.tmp I try delete %~*.tmp but it fails Any ideas TIA Richard Coffre France Telecom Orbiscom T=E9l. : 01 47 61 46 28 Share what you know, learn what you don't

 [2/6] from: tomc:darkwing:uoregon at: 18-Apr-2002 9:18


another untested foreach f read %.[if parse to-string f["~" thru ".tmp" end][delete f]] On Thu, 18 Apr 2002, COFFRE Richard FTO wrote:

 [3/6] from: greggirwin:mindspring at: 18-Apr-2002 10:28


Hi Richard, << I need to delete files like ~toto.tmp I try delete %~*.tmp but it fails >> Try using the /any refinement and see if that works for you. I've never used it with DELETE myself, but did a "help delete" at the console and found out about it. --Gregg

 [4/6] from: tomc:darkwing:uoregon at: 18-Apr-2002 9:05


again un-tried foreach f d [ if all[ equal? (first s: to-string f) #"~" equal? (skip tail s -4) ".tmp" ][delete f] ] On Thu, 18 Apr 2002, COFFRE Richard FTO wrote:

 [5/6] from: pyxos:netcourrier at: 18-Apr-2002 23:00


Thanks for the advice to use help, I don't use to do so. And Tom I will test your solutions. So now I go to bed. Have a nice day ----Message d'origine----
>De: =22Gregg Irwin=22 <greggirwin=40mindspring.com> >A: <rebol-list=40rebol.com>
<<quoted lines omitted: 11>>
>rebol-request=40rebol.com with =22unsubscribe=22 in the >subject, without the quotes.
------------------------------------------------- =22Sound Mind, Sound Body=22 Juv=E9nal =22Lire et =EAtre curieux, c'est la m=EAme chose=22 Pascal Quignard =22Qui triomphe de lui-m=EAme poss=E8de la force=22 Lao-Tseu, extrait du Tao Te King =22Dans la course =E0 la qualit=E9, il n'y a pas de ligne d'arriv=E9e=22 David Kearns Allez voir mon site : http://www.desala.org ------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap : www.netcourrier.com T=E9l=E9phone/Fax : 08 92 69 00 21 (0,34 =80 TTC/min) Minitel: 3615 NETCOURRIER (0,15 =80 TTC/min)

 [6/6] from: ronald::free::fr at: 19-Apr-2002 0:52


Bonjour Gregg, Thursday, April 18, 2002, 6:28:41 PM, vous avez écrit: GI> Hi Richard, GI> << I need to delete files like ~toto.tmp GI> I try delete %~*.tmp but it fails >> GI> Try using the /any refinement and see if that works for you. I've never used GI> it with DELETE myself, but did a "help delete" at the console and found out GI> about it. GI> --Gregg Mais c'est bien sûr... It seems always easier to complicate things ;-) where REBOL provides THE solution . Thanks Gregg -- Cheers, Ronald

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted