Here's the problem,
When I refesh a developement environment from a tape backup of production, there are a lot of softlinks in many different subdirectories that need to be rebuilt, so it links to the right files.
Can I get a script that can take the directory name that needs changed, the directory name that it needs changed to, and the full path to the directory so any subdirectorieswith bad links will get fixed.
here's an example of what I'm talking about...
there are many links like
lrwxrwxrwx 1 applmgr apps 57 Mar 30 13:05 HRPSRSRE -> /ORACLE/apps/PROD1/fnd/6.1.1/bin/fndcpesr
Basically I need a quick way of changing all links from PROD1 to DEV1 (The sub-directory structures are the same between production and developement)
Ideally, the command would look something like
change_links.sh PROD1 DEV1 /ORACLE/apps/DEV1
I'm running on HPUX 10.20 if that helps.
If I am unclear about anything please let me know.
And please post comments, not answers, I will accept your comment as an answer, when I verify that everything works.