Re: A bit more difficult than usual questions



In comp.unix.shell message <ad1b2c49-1dd4-42ee-89bc-abc7a63fd0bf@v8g2000
yqb.googlegroups.com>, Fri, 13 May 2011 06:57:21, gpadu99
<gpadu99@xxxxxxxxx> posted:

Hi all,

I would like to replace a string in a number of files. The problem is
that the string to find is different than what I want to replace. More
clearly: I want to find all instances of string "ABBB.C" and I want to
replace "BBB" with "DDD". That means that after the operation, all my
files should contain the string "ADDD.C"

Any tips are much appreciated

MiniTrue will do it; and it can do more things than SED can.

--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike 6.05 WinXP.
Web <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and links.
Command-prompt MiniTrue is useful for viewing/searching/altering files. Free,
DOS/Win/UNIX now 2.0.6; see <URL:http://www.merlyn.demon.co.uk/pc-links.htm>.
.



Relevant Pages

  • Re: Acronym macro
    ... I do a lot of work with large documents full of acronyms, ... specific string but to strings that meet certain conditions. ... Dim oDoc_Source As Document ... 'Compensate for heading row ...
    (microsoft.public.word.vba.general)
  • Modify maco - extract definition 1st then acronym within ( )
    ... Is there a way to reverse the order of this macro (excract acronyms & ... Dim strAcronym As String ... Dim strDefine As String ...
    (microsoft.public.word.vba.general)
  • Re: Use table in Replace function
    ... I'm assuming in your table that fldLower is the string you want to ... and fldUpper is what you're replacing it with. ... >>> bringing the memo field from upper to lower changes acronyms that should ... >>> back to upper. ...
    (microsoft.public.access.formscoding)
  • Re: Initials
    ... acronyms. ... Rick ... "Ron Weiner" wrote: ... > Function Acronymizer(strIn as string) as string ...
    (microsoft.public.access.formscoding)
  • Re: preg_split problem
    ... To do that i need to split them whenever a dot occurs, and the join the first two array occurences in a new string but I have a problem beacuse the dot in the Croatian languages is not always used a sentence delimiter, but is often used in conjuction with numbers and acronyms. ... Formulating the exact requirements before writing the regex is more then half the work. ...
    (comp.lang.php)