File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Linux / UNIX and the fly likes how to modify the Symbolic link file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "how to modify the Symbolic link file." Watch "how to modify the Symbolic link file." New topic
Author

how to modify the Symbolic link file.

jing hu
Ranch Hand

Joined: Jun 30, 2009
Posts: 63
Now I have many Symbolic link files.
for example there are two dirs named A and B. Dir A has many config file,
And Dir B has the sysmbolic link files to the config files in A.

Now I want to rename dir A to C. So the link file in B will be not valid.
In dir B, use command "ls -al", the output will be :


I want to modify all link files in B to link the config files in dir C, and the output will be:



How can I implement this easily?
Thanks very much.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Rename A to C, but also create a link A -> C !


[Jess in Action][AskingGoodQuestions]
jing hu
Ranch Hand

Joined: Jun 30, 2009
Posts: 63
yeah, This is a very smart method. But I need to delete the dir A.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: how to modify the Symbolic link file.
 
Similar Threads
managing Faces-config in jSF ...please explain.
Struts-config.xml
can there be two struts-config.xml files in one application?
Struts Validator problem
Three struts-config files specified in the webapp's web.xml file ,Which one is Loading first?