Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
GREP command for DOS
Name: Michael Date: November 24, 2000 at 06:41:33 Pacific
Comment:
I'm looking for a DOS equivalent of the Unix command GREP. GREP is a text file manipulation tool, but basically the only thing I need to be able to do is search and replace and insert/delete text in a file.
Name: G. Smith Date: November 24, 2000 at 07:47:21 Pacific
Reply:
A very comprehensive site to check out is the Free Software for DOS site. The site has links to and reviews of all sorts of DOS freeware. The main URL is: http://www.geocities.com/SiliconValley/Lakes/1401/softlib1.htm
and the Unixish DOS section is: http://www.geocities.com/SiliconValley/Lakes/1401/unix.htm#menu
Also, www.gnu.org has a section listing all of their software: http://www.gnu.org/software/software.html
You might have to dig to find the DOS ports section. Hope this helps. Sincerely, Gary Smith
0
Response Number 2
Name: DoOMsdAY Date: November 24, 2000 at 09:35:13 Pacific
Reply:
Or you could use "edit.com" which comes with DOS/9x.
0
Response Number 3
Name: Al Date: November 24, 2000 at 16:38:28 Pacific
Reply:
A DOS version of GREP came with several versions of Borland's compilers
0
Response Number 4
Name: Michael Date: November 25, 2000 at 13:23:06 Pacific
Reply:
I know about edit. I need to be able to use it in a batch file though.
Thanks for the help folks! -Michael
0
Response Number 5
Name: Claude Moreau Date: November 27, 2000 at 05:53:58 Pacific
Reply:
According to my Unix manuals, grep is used to search for patterns not replace them. The Unix utilities used to search and replace is sed. I have a copy of Bordland's DOS Grep but then again it is used to search only.
If you are not afraid of learning, I would suggest AWK. It is a C-like programming language designed to manipulate text files. Very powerful. Amazing what you can do with it. Drop me a mail if you are interested.
Summary: What is the command for "save setup" in Norton Commander for DOS? I don't know how to locate the version number. I hope it isn't necessary. ...
Summary: I am having trouble commanding my dos if i download dos 7.0 will it crash my windows 2000 caus i have to pull dos up in accesories in a small window can i download an updatid version and still display...