"Davis, Jeff" <[EMAIL PROTECTED]> wrote:

>
>
>I have a user doing some programming on our SuSE Linux for S390 system.  He
>has the following question.
>
>>
>> The question for today is:
>>
>> "How carried away can I get with Linux file pointers?"
>>
>> Here is my problem. I have about 150 Makefiles in 150 different
>> directories that have two pieces of information that need to be changed.
>> Not being accustomed to the Linux or Unix world, I have no clever
>> utilities to make mass changes that I'm used to in TSOland and now isn't a
>> really good time to learn them as this is a quick and dirty effort to
>> demonstrate that a application can be ported from Unix to Linux.
>>
>> The first is an include library that I need to change from -L/abc/def/ghi
>> to -L/zyx/vvvu/tsr.
>> Now I recognize that I could reasonably put a pointer in the /abc/def
>> directory that points ghi to /zyx/wvu/tsr and all will be well.
>>
>> The real question is the -ltcl8.0 include in the 150 makefiles. Can I put
>> a pointer in the /zyx/wvu/tsr directory named libtcl8.0 that points to
>> /zyx/wvu/tsr/libtcl8.3 and get away with it or will the linker explode?
>>
Jeff, have your application developer check out the "rpl" utility for
Linux. From it's web site (http://www.laffeycomputer.com/rpl.html):
  "rpl is a U*nx text replacement utility. It will replace strings with
   new strings in multiple text files. It can work recursively over
   multiple directories and supports limiting the search to specific
   file suffixes."
Might just be the tool he needs.

Dave Jones

Reply via email to