home *** CD-ROM | disk | FTP | other *** search
Wrap
Select 1.4 by V.Gervasi - ICARUS Introduction -------------- ááDid you ever wanted to perform some operation on your files, let's say compress, rename or delete them, and that all files matched a certain pattern... but one or two ? Or wanted to archive all files matching #?.c, but that bstro_tab.bin, too, and no other #?.bin ? Did you ever need to remove some file from two or more directories ? ááOr let's say that, while you are writing a certain shell script, you want to allow the user to select a file from a certain list (e.g., devs:#?.device): what do you do ? ááIn any of this cases, Select/Except is the right tool for the job. You only need AmigaOS 2.0 or later. Distribution -------------- ááSelect is not shareware, strictly speaking, and is NOT public domain. ááSelect is (C) Copyright 1991 V.Gervasi - ICARUS. ááHowever, you can freely distribute it, with the only restriction that you cannot obtain any profit greater than the bare duplication and media cost (i.e., no more than $4.-). ááIn any case, the Select executable, the icon Select.info, the Install script and this document, Select.doc, must be distributed together, not necessarily in their original .lzh archive, but in their original, unmodified form. ááYou don't need to pay to use Select; however, a contribution is welcome. If you get 10 bucks, put them in an envelope and send it to the Author, you will merit his grateful wishes and, probably, an updated version. ááI beleive that this distribution policy is quite reasonable; let me know your opinion ! Installation -------------- ááJust issue "execute Install" or, if you use AmigaShell, simply "Install". ááThe script will prompt you for a directory in which to install Select; the remaining actions are automatic. Select or Except ? -------------------- ááActually, this program is two programs. Or, better, this two programs are the same program.áOh, well, the program, once run, will behave differently depending on the name it had when run: - Select Will select from the files matching the given pattern; - Except Will select from the files NOT matching the given pattern. ááThe included script, Install, takes care of performing a MAKELINK, so that you can have both programs without wasting twice the space on your disk. ááIn the following, we will refer to Select, but Except behaves exactly in the same way. Syntax -------- ááThe syntax is quite simple: SELECT <command line with pattern> ááHere, <command line> is exactly the same you should issue to execute the required command, with the only exception that you can use a pattern whereas you would have used a file name. ááExamples: select copy df0:#? df1: Copies the files you will select from df0: to df1: select type #?.doc Types the files you will select, chosen among those whose name ends in ".doc". select delete #?read#?me#? Deletes all files you will select, chosen among those whose name contains "read" and "me", in that order. ááThe first AmigaDOS pattern in the <command line> is used to select the files that will appear in list. You can select any number of files from this list, or add other files. Select's Interface -------------------- ááSelect's window contains a file list (corresponding to the pattern) on which you can operate, a single line containing a copy of the <command line> and 6 command buttons. ááYou can select a file from the list simply by clicking on his name; beside the name will appear a ">>" symbol. As usual, you can use the scrolling bar to see the entire list. ááThe "All" button selects all the files from the list, while "None" deselect them all. "Invert" deselects all currently selected files, and selects those not selected. e "anoc, a----d dTe "sOádYded. ewy w⌠-d dTe "sOádYded. ewyO ah≥f the <comma Oádw╒ne <corrr l selS.doc, msileôsC AmigaOS tendlectedn ; <co ndle≡6bceistru file e <cf the <comma O ! d, rl?lecn: Æo c┐ in thaísi╟rCac, so▌s╒le:5.eon h ee⌡rCac, so▌s╒le:5.eon h ee⌡rCac, so▌s╒le:5.eobis Coplect a fi files fwb:#?.device): what do you do ? ááIn any of this casesvertt do:5.e═of tr- áuÆ do:5.s matoles yoo═ofKELaoe:5c, onco,aaere#ct containsbn.all pát simply ) Copyrlects ts matolwe.i#ct"Ly: Cop.dye lisfevert" dobi o:5m ad ⌠ert"end cD d cD dd to seleck afileos includ an ng at┴o╓h seleckndlA 0 those not selected. e f≡ from tehave bC╢ileôsC AmigaOS tenehose we liselcome. respondte.i#ct"d loe a. ewaTDraOSibondchoªot obw╒ne < adtr- Φaraelectel?⌡ Ωot r t. respondte.i#ct"d loe a. e < c┐ in ths two pr Amigaareya cre#cins n.<coNy: thosea. el As us" sel1a;he "AgiEtieae coDUCi-------- ááTt ¢╚╓ihe "AgiEtieas e.atLacRae ááTo╛Ω Oou cG a---rnfrom #ct"d loec, oso¢g all. á╖ose.mdyen l..i#c9em ad ⌠ert"end cD d cD dd ontaa easy v"ist ewy b╒?bdtglásoi b╒?bdtglásoi m #l ¢╚╓ihOh"p tiwingle "g tca╛Ω =tirsr h eu,gleside the eael>Oins .i#A 0 thoseafilthe e,io h"afiltAdeael>Oinsi---6bcd---rnf"n.<c#d ⌠yV<coàe "A buttdcro"g tc>Oin se same waÜuO 4.oü the r,o dyen l..i#c9em ad ⌠ert"end cD d cD dv <co e inclem inomn÷O a╖ll. g---- only╨no¢ctel?⌡ Ωot r t. respondte.i#ct"d loe a. e < c┐ in ¥list.Σn\--6bcd---clcomm<, l.'list.oondtete.i#ct"d loe a. e < c┐ in ¥list.Σn\--6bcd---clcomm<, qAsel dof_D>enehose we liselcome. respondte.i#ct"d loe a. ewaT╚sF▌≤iilope and send it to the A end it to the A msileôsC AmigaOS tendlectedn ; <co ndle≡6bceistrnca╛Ω =t:pen-mm<, qAsel dof_D>enehthe files ymigar╚ two programsto the pattern) o; thLa╛Ω =t:ôsC 4 eleceÉôglá;commsaVsW rCvog t"s, iuT.4TÖo; thLa╛Ω-6bòAs, iuT.4TÖo; thLa╛Ω-6bòAs, iuT.4TÖo; th≡p Φs Interface ---------------∞raeleeVsWvd±╛Θ frooplapa@ selg@ selg@ selg@ selg@ selg@ sel "Aggiven pa#h,r;it ááIn tuw ;it;he #ctnw,Σn\-I± i b╒?bdtglásoi m #l ¢╚╓ihOh"p tiwingle "g tca╛Ω =all liswIwo 0 du"ny"Oh"p a. e╛.," dobi.#ctahe "t"d loeamsto thbdr line>i L<i/uTelg@ sêbcdanl>Oins -6bcd--- - cute the required command, with thaVsesile<<i/uTelg@5---------.áÖ "Aggm~uopo(g┐nsi---e snehohgand £o∙.s:? tiwint╚"le:5.eop,re. to tym # ece0ondto soctel?⌡asìoplNooe═of<i/; 6bòu-6bòAs, olg@ sêbcdanl>Oins -6bcd--- - cute th