HP3000-L Archives

April 2004, Week 3

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:
"Black, Cory" <[log in to unmask]>
Reply To:
Black, Cory
Date:
Fri, 16 Apr 2004 16:45:52 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
Donna's script is far too long and complicated for our simple minds:-).  Since this is only used by IT staff, most of which speak at least passing UNIX, I kept it short.  Finally, yes, I was looking for the string 'MYFILE' just because I knew it was there. 

:help findname
USER DEFINED COMMAND FILE:  FINDNAME.CMD.SYS
PARM where=*, string='#'
comment This command file will search a given directory,
comment specified by 'where' for a string within one of
comment the files in the directory.  If you get an error
comment saying Arg list too long you have passed grep's
comment limit for the number of files to search.  Just
comment refine your search to look at a smaller number
comment of files.  For example, try using [A-M]*
comment 'where' uses the UNIX syntax and is case sensitive
comment so to search @.GROUP.ACCOUNT you would use
comment /ACCOUNT/GROUP/*
comment 'string' is what you are looking for. 
purge greptemp;temp>$null
echo
echo Searching !where
echo Looking for !string
echo
echo > greptemp
echo grep -i "!string" !where >> greptemp
echo exit >> greptemp
echo >> greptemp
run sh.hpbin.sys < greptemp
purge greptemp;temp>$null



DISCLAIMER:
**This E-mail and any of its attachments may contain Lincoln National Corporation proprietary information, which is privileged, confidential, or subject to copyright belonging to the Lincoln National Corporation family of companies. This E-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this E-mail, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this E-mail is strictly prohibited and may be unlawful. If you have received this E-mail in error, please notify the sender immediately and permanently delete the original and any copy of this E-mail and any printout. Thank You.**

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

ATOM RSS1 RSS2