HP3000-L Archives

April 2004, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mike Hornsby <[log in to unmask]>
Reply To:
Mike Hornsby <[log in to unmask]>
Date:
Wed, 14 Apr 2004 14:09:28 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (38 lines)
>How can I find this? I figure either seaching every file for a line
containing "!job itemlist" or if there is a way, I'd like
>to find out more info on this running job...

>Or if not then the hardway(how to search for a string in a file).

It turns out that in this case the hard way is not too hard:) If you place
the following commands in a file called SEARCH, and this file is in your
current path, then you can easily search a directory structure for all files
containing a specific string. (note:the grep parms are -IL in lower case)
If the group is too large you may get a *Segmentation violation* but
otherwise this works ok. BTW, I get the same error if I use the Find command
first then piped to Grep:(

parm SrchString,SrchFiles
purge shellin,temp >$null
echo grep -il '!SrchString' !SrchFiles     >shellin
echo exit                                >>shellin
xeq sh.hpbin.sys    <shellin

For example I am looking for any file in @.CMDS.SYS that contains the string
LINKCONROL:

SEARCH LINKCONTROL,/SYS/CMD/*

/SYS/CMD/HOWTRACE
/SYS/CMD/NETSTUFF
/SYS/CMD/TRACLINK

Hope this helps.

Mike Hornsby Co-founder/Chief Technical Officer
Beechglen Development Inc. (www.beechglen.com)
513-922-0509 [log in to unmask]

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2