#Searching .i files
6 messages in this thread
I've been plowing thru the work of converting my program. I wonder if there is
a tool that can scan all my includes looking for the right one? I may have
exaplained that badly. Lets say I want an equate for OPEN. Which .i file do I
use? "I" have no idea <grin> So can I run a program that will zip thru the
many different files and say FOUND OPEN in ZARF.i Or whatever? Thanks.
There is a standard AmigaDOS command "Search". This might be DOS 2 or
higher, I'm not sure. If you have got this you can try :
search include:dos Open
but be ready to pause the output because it will show everywhere it finds
the text Open anywhere in a line.
If you haven't got Search, look for a version of "Grep". This is the name
of a Unix command, and I expect there is a GNU Amigaversion of it
somewhere.
Search! Ok will do. Thanks!
> is there a tool that can scan all my includes looking for the
> right one?
I use Khalid Aldoseri's file requester which will do a string search
for you. You can usually guess which library (Dos, Exec etc.) to
look at. The file requester does the rest.
This file requester is available for downloading from Compuserve,
though I don't remember from where…
> is there a tool that can scan all my includes looking for the > right one?
An interesting feature of the SEARCH command is that it recognizes
pattern-matched PATHS, not just file names. So you can use something like:
SEARCH INCLUDE:#?/#?.i MyFunction
(adjust the path to reflect your setup)
… and it will search ALL subdirectories, files ending in .i, for the
desired string. –Jim
I'm working on a program at the moment that uses the xxxx_lib.i files and
searches for text or offsets (eg it'll find Open OR -30 etc…) but it's
really rough at the moment i'll tell you when i get it finished. (should
that be IF <g>)
"hey God, i really don't know what you mean"
"seems like salvation comes only in our dreams" – NIN