Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Is there a grep command for win-98 DOS?

- - - - -

  • Please log in to reply
5 replies to this topic

#1
Nomen

Nomen

    Member

  • Member
  • PipPip
  • 191 posts
  • OS:98SE
  • Country: Country Flag
I was looking for something that would function similar to the unix "grep" command, and I'm finding that there appears to be a "DOS" command -> findstr, but that is not a valid command when you open a DOS window from win-98 (for what version of windows is there a shell findstr command??). Anyone know if there is a "grep.exe" or "findstr.exe" for dos?

Edit: Apparently there is a "findstr.exe" on XP, but that file is linked to some function in ntdll.dll related to ansi strings that win-98 doesn't have.

There is a find.exe that apparently does function soft-of like grep - except that it doesn't take wild-cards (like *.log) for filespec. Findstr on XP does take wildcards for filespec.

Edited by Nomen, 05 April 2013 - 01:41 PM.



How to remove advertisement from MSFN

#2
Commodore

Commodore

    Newbie

  • Member
  • 27 posts
  • OS:98SE
  • Country: Country Flag
You can use the wildcards if you using FIND in couple with command FOR

#3
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,251 posts
  • OS:none specified
  • Country: Country Flag
Google
gnu grep dos download
http://www.resoo.org/docs/dos/free_software/txtutil1.htm#grep

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#4
CharlotteTheHarlot

CharlotteTheHarlot

    MSFN Master

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,054 posts
  • OS:none specified
  • Country: Country Flag
After searching through my DOS Batch folder I turned up a couple 3rd party utilities, and amazingly they all still have working links! In the "spoiler" I put a short rip from the diz or readme to give you an idea of their date and status.

[George Gesslein II] Unix-Like Utilities for MS-DOS ... page ... file
Spoiler

DJGPP Port of GNU Fileutile 4.1, release 7 ... page ... file
Spoiler

[Oak Road Systems] [Stan Brown] GREP Release 8.0 ... page ... file
Spoiler

[Intelligence Services] Greppe Text Tools Release 3.0 ... page ... file
Spoiler

[Gerald M. Vrooman] [Chenango Shoreware] SGREP DosNix v2.4c ... page ... file
Spoiler

[Robert Nordier] FreeDos Xgrep v1.03 ... page .... file1 .... file2
Spoiler

... Let him who hath understanding reckon the Number Of The Beast ...


#5
submix8c

submix8c

    Inconceivable!

  • Patrons
  • 4,251 posts
  • OS:none specified
  • Country: Country Flag
DJGPP "DOS GREP" you provided is new version. I didn't bother going further than what I gave just to satisfy the OP. It's clear that "Delorie" is the author of the Port I provided. Within the link is -
http://www.resoo.org...ogrmg.htm#djgpp

So, now the OP has many options. :thumbup

Someday the tyrants will be unthroned... Jason "Jay" Chasteen; RIP, bro!

Posted Image


#6
Yzöwl

Yzöwl

    Wise Owl

  • Member
  • PipPipPipPipPipPipPipPipPip
  • 4,532 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Additionally, if you let us know what it is you are trying to do we may be able to provide you with a solution from the console directly.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN