PC Review


Reply
Thread Tools Rate Thread

Batch program to Find/Replace ?

 
 
Shadow
Guest
Posts: n/a
 
      7th Nov 2003
Anyone know of this kind of prog? I posted a Q originally about web site
management
and had no reply. Now I'll post that question in bits ;-)

TIA

S.


 
Reply With Quote
 
 
 
 
rir3760
Guest
Posts: n/a
 
      7th Nov 2003
It was a dark and stormy night when "Shadow"
<(E-Mail Removed)> wrote:

> Anyone know of this kind of prog? I posted a Q originally about
> web site management and had no reply. Now I'll post that question
> in bits ;-)


If you mean a GUI based application then check the Pricelessware
website:
<http://www.pricelessware.org/2003/PL2003TEXT.htm
#SearchandReplaceTool>

Hope this helps
 
Reply With Quote
 
Roger Johansson
Guest
Posts: n/a
 
      8th Nov 2003
"Shadow" <(E-Mail Removed)> wrote:

>Anyone know of this kind of prog? I posted a Q originally about web site
>management
>and had no reply. Now I'll post that question in bits ;-)


http://www.student.northpark.edu/pem...d/minitrue.htm
download:
http://www.idiotsdelight.net/minitrue/

Minitrue is a search and replace program which can be used in batch
files.
It can handle any kind of file, while sed can only handle text files.
I find it easier to learn than sed.

Here is an example batch file I used to test it.

rem this batfile performs three tests of minitrue
rem the file assign.com has to be in the same dir
rem look at that file in a hex viewer first, see all the hex00
rem change all hex00 to hex01, un-rem next line to do it
mtr -nlx -v:Grbk:brbk:mabk \x00 = \x01 -- assign.com
rem -nlx means -n=no display, just do it
rem -l means generate a logfile, -x means turn off the regular
expressions
rem -v:Grbk:brbk:mabk just sets some nicer colors in display
rem but I don't use any display here, so it is not necessary
rem look at the file assign com after running, see all the hex00 have
changed into hex01
rem see the backup file has been generated, and the logfile tells us
about the changes
rem
rem change all hexff to hexfe, un-rem the next line to do it
rem mtr -nlx -v:Grbk:brbk:mabk \xff = \xfe -- assign.com
rem
rem conclusion: minitrue can change anything to anything, even in
binary files
rem
rem test if it matters if we remove the -x
rem mtr -nl -v:Grbk:brbk:mabk \x00 = \x01 -- assign.com
rem it works too, no problem

I used a copy of the dos file assign.com to test it on.

Minitrue is a freeware gem, it is very small, has enormous
possibilities, and the help files are readable.

--
Roger J.

(My email address is a spam trap, don't use it)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
batch find/replace and mass rtf conversion skrampach@hotmail.com Microsoft Word New Users 3 2nd Jul 2008 05:36 PM
batch find/replace and mass rtf conversion skrampach@hotmail.com Microsoft Word Document Management 3 30th Jun 2008 06:33 AM
Can Word 2007 do batch find/replace? =?Utf-8?B?WkEgbXVzdCBiZSBvZmYgZm9yIE1TIE9mZmljZSBz Microsoft Word Document Management 2 13th Apr 2007 02:17 PM
Batch find and replace =?Utf-8?B?TGl2ZWRpcmVjdGl2ZXM=?= Microsoft Word Document Management 5 6th Jun 2005 10:36 PM
Find and Replace Batch Text Queries =?Utf-8?B?RVNNRVNI?= Windows XP Help 1 1st Mar 2004 04:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:23 PM.