how do i search the files which include roshan in windows c:\ drive using the dos grep command with is in the following location http://web.kcua.ac.jp/pub/dos/grep20.zip




how do i search the files which include roshan in windows c:\ drive using the dos grep command  with is in the following  location http://web.kcua.ac.jp/pub/dos/grep20.zip
Roshanw4Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lee W, MVPTechnology and Business Process AdvisorCommented:
Why not use the built in "FIND" command instead.  The command you want to use is pre-long file name and might have difficulty in doing this.  It might also have limitations on file sizes etc.

What operating system do you use?  XP?  2000? Me? 98?

For XP and 2000 (and NT4), the find command should be usable as such:

Searches for a text string in a file or files.

FIND [/V] [/C] [/N] [/I] [/OFF[LINE]] "string" [[drive:][path]filename[ ...]]

  /V         Displays all lines NOT containing the specified string.
  /C         Displays only the count of lines containing the string.
  /N         Displays line numbers with the displayed lines.
  /I         Ignores the case of characters when searching for the string.
  /OFF[LINE] Do not skip files with offline attribute set.
  "string"   Specifies the text string to find.
  [drive:][path]filename
             Specifies a file or files to search.

If a path is not specified, FIND searches the text typed at the prompt
or piped from another command.

For example to search all files in the C:\ root directory (NOT subdirectories) you can use:

FIND /I "ROSHAN" *
0
Roshanw4Author Commented:

I AM USING THIS GREP UTILITY  http://web.kcua.ac.jp/pub/dos/grep20.zip AND I WANT TO SEARCH SPECIALLY IN DOS AND WINDOWS (2000,98,95)
0
Roshanw4Author Commented:
I FEEL YOU DID NOT GET THE QUESTION ?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Roshanw4Author Commented:
IF YOU FEEL NEED MORE EXPLANATION I CAN DO SO !!
0
Lee W, MVPTechnology and Business Process AdvisorCommented:
Perhaps you did not understand my response:
The command you want to use is a 16bit application, pre-long file name (meaning it likely will not be able to read/understand files specified by their long file names.  It might also have limitations on file sizes meaning if try to "grep" a file over 32,000 bytes (or 64,000, or some other appropriate number), it might crash.  Making the command useless for you.

If you INSIST upon using this one, then I the command in its most basic sense would be:

grep -l roshan *.*
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lee W, MVPTechnology and Business Process AdvisorCommented:
Grep has MANY options - I highly recommend you open the GREP.MAN file in notepad and read what they are.  Your desired output can greatly effect the syntax of the command used.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.