Article View: comp.sys.amiga.tech
Article #2524Re: RENAMING FILES
From: Mike (With friends like these, w...
Date: Tue, 05 Dec 1989 04:49
Date: Tue, 05 Dec 1989 04:49
28 lines
1817 bytes
1817 bytes
In article <17628@dartvax.Dartmouth.EDU> blech@eleazar.dartmouth.edu (Michael Blechner) writes: <I need to rename 200+ files quickly and easily, i.e. not one at a time <I have files mike.1.image through mike.200.image (sculpt animate files) <and files mike2.1.image through mike2.200.image. I want to rename all mike2 <files to mike files mike.201.image through mike.400.image. I cant seem to find <an easy way to do this? Please help me out I have 5 different sets of 200+ <files to change. Thanx. Please Email. The following near trivial ARexx script ought to do it if you run the output of "list quick mike2#?" through it as standard input. The format option to list isn't quite up to it. Parameterizing it to do different files or different offset ought to be straightforward. <mike /* */ address command /* Only if you don't have WSHell */ do forever parse pull "."number"." if number == "" then exit 'rename mike2.'number'.image mike.' || number+200 || '.image end -- Kiss me with your mouth. Mike Meyer Your love is better than wine. mwm@berkeley.edu But wine is all I have. ucbvax!mwm Will your love ever be mine? mwm@ucbjade.BITNET
Technical Details
Message-ID:
<1989Dec5.044908.8880@agate.berkeley.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!agate!violet.berkeley.edu!mwmReferences:
<17628@dartvax.Dartmouth.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!agate!violet.berkeley.edu!mwm From: mwm@violet.berkeley.edu (Mike (With friends like these, who needs hallucinations) Meyer) Newsgroups: comp.sys.amiga.tech Subject: Re: RENAMING FILES Message-ID: <1989Dec5.044908.8880@agate.berkeley.edu> Date: 5 Dec 89 04:49:08 GMT References: <17628@dartvax.Dartmouth.EDU> Sender: usenet@agate.berkeley.edu (USENET Administrator;;;;ZU44) Reply-To: mwm@violet.berkeley.edu (Mike (With friends like these, who needs hallucinations) Meyer) Organization: Missionaria Phonibalonica Lines: 28