Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > OT global searchreplace from the command line
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 27th November 04:49
vic dura
External User
 
Posts: 1
Default OT global searchreplace from the command line



Does anyone know of a freeware win32 text file search/replace utility
that can do global search/replace from the command line?

For example something like:

c:> program foo.bar "old string" "new string"

where "program" is the program name, foo.bar is file name in which
all occurrences of "old string" are replaced with "new string"

I have a old program called MiniTrue that does this, but it has
problems with LFNs. Does anyone know of another freeware that could do
this?

The reason I ask this here is that you guys are pretty knowledgeable
about command line utilities.

Thanks.
--
To email me directly, remove CLUTTER.
  Reply With Quote


 


2 27th November 04:51
stan brown
External User
 
Posts: 1
Default OT global searchreplace from the command line



If it were just a question of global search I'd hawk my own GREP at
you. But for search and replace you probably want SED.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
"What in heaven's name brought you to Casablanca?"
"My health. I came to Casablanca for the waters."
"The waters? What waters? We're in the desert."
"I was misinformed."
  Reply With Quote
3 27th November 04:54
klaus meinhard
External User
 
Posts: 1
Default OT global searchreplace from the command line


Vic,


with 4DOS / 4NT you could use the %@replace function, as long as your
needs aren't too fanciful.


--
Mit freundlichem Gruß,

Klaus Meinhard
  Reply With Quote
4 27th November 04:57
steve fbin
External User
 
Posts: 1
Default OT global searchreplace from the command line


and no line in the files contains characters which have syntactical
significance to the command processor (after you use SETODS /X to disable
all you can).
--
Steve
  Reply With Quote
5 27th November 05:00
vic dura
External User
 
Posts: 1
Default OT global searchreplace from the command line


Thanks for the suggestion, but this is for a XP system without
4dos/4nt on although I could put 4dos freeware on it, but that's not
what I want to do.

Some people in alt.comp.freeware suggested GSAR located at

http://gnuwin32.sourceforge.net/packages/gsar.htm

which does what I need. It's a nice utility.

Regards,
Vic Dura
--
To email me directly, remove CLUTTER.
  Reply With Quote
6 27th November 05:57
ak621@chebuctonsca richard
External User
 
Posts: 1
Default OT global searchreplace from the command line


*** So why seek an answer in a "4DOS" group?

Richard Bonner
http://www.chebucto.ca/~ak621/DOS/
  Reply With Quote
7 27th November 05:59
datamystic
External User
 
Posts: 1
Default OT global searchreplace from the command line


I use TextPipe Web (www.searchandreplace.net) but it's not freeware.
  Reply With Quote


 


Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666