🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.introduction
Article #2038

Re: ** Need a better way to use 'WhereIs' **

#2038
From: Michael
Date: Fri, 15 Mar 1996 11:03
61 lines
2439 bytes
Hi Greg,

On 14 Mar 1996, Greg Jung wrote:

>    This is a limitation of the system, the file search utilities, which
> hasn't caught up with itself, wrt the enhancements to logical assignments.
> A better way? I just found out about whereis today! I suppose you should 
> just write a script that'll parse your requested filename and farm it 
> out to the disks.  How to get a list of devices associated with a logical?
> 
> Greg
> 
>    BTW finding specific files in S:, Libs:, devs:, L:, and c: works
> for multiply-assigned logicals, in the important functions (running a program
> etc.) but not in the list or dir commands (I can't cite all cases).
> 

I hit the books today and I came up with the following...

.KEY filename
.BRA {
.KET }
Echo ""
Echo "Now checking DH0: for {filename}"
Echo ""
WhereIs DH0: {filename}
Echo ""
Echo "Now checking DH1: for {filename}"
Echo ""
WhereIs DH1: {filename}
Echo ""
Echo "Now checking DH2: for {filename}"
Echo ""
WhereIs DH2: {filename}
Echo ""
Echo "Now checking DH3: for {filename}"
Echo ""
WhereIs DH3: {filename}
Echo ""
Echo "Now checking DH4: for {filename}"
Echo ""
WhereIs DH4: {filename}
Echo ""

...I made this file with ED and named the file "WhereIs-Startup" and put 
it in my S: directory. Make sure that the file has the attributes 'srwed' 
set. Then I made a entry for a alias command called 'wiall'. The 
following is the line to enter in the Shell-Startup...

alias wiall      S:WhereIs-Startup []

...that's it. Just open a new shell or re-boot; type 'wiall name.zip'
and WhereIs will search the drives one at a time. Of course you will have 
to set the file up with the drive names you have and the amount of drives 
you have. In other words your mileage may vary and your on your own if 
you use this. But it does work on my OS 3.1 Amiga 500.

Michael (shotgun@slip.net)

Founding member of S.A.D. (Slipnet A Disappointment)
Technical Details
Message-ID: <4ibipo$r6d@slip.net>
Path: arc1-ca.pugleaf.net!news.slip.net!not-for-mail
References: <4i59k9$7v2@slip.net> <4i9ohs$6f6@ra.nrl.navy.mil>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.slip.net!not-for-mail
From: Michael <shotgun@slip.net>
Newsgroups: comp.sys.amiga.introduction
Subject: Re: ** Need a better way to use 'WhereIs' **
Date: Fri, 15 Mar 1996 03:03:07 -0800
Message-ID: <4ibipo$r6d@slip.net>
References: <4i59k9$7v2@slip.net> <4i9ohs$6f6@ra.nrl.navy.mil>
NNTP-Posting-Host: slip-3.slip.net
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
NNTP-NEWS-ADMIN: newsadmin@slip.net
In-Reply-To: <4i9ohs$6f6@ra.nrl.navy.mil>