Subject: | |
From: | |
Reply To: | |
Date: | Wed, 14 Apr 2004 14:09:28 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
>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 *
|
|
|