CompuServe Thread

#Searching .i files

6 messages in this thread
#39286From: New memberFeb 3, 1994 1:41 PM
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.
#39288From: Peter WadeFeb 3, 1994 4:59 PM
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.
#39386From: New memberFeb 8, 1994 11:57 AM
Search! Ok will do. Thanks!
#39781From: ShraddhanFeb 27, 1994 10:35 AM
> 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…
#39790From: Jim ButterfieldFeb 27, 1994 8:39 PM
> 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
#39836From: Robert KingMar 1, 1994 1:08 PM
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