Symbolic link modification for HP unix
Posted
by
kalpesh
on Super User
See other posts from Super User
or by kalpesh
Published on 2010-12-27T08:49:42Z
Indexed on
2010/12/27
8:55 UTC
Read the original article
Hit count: 255
hpux
Hi David Zaslavsky,
Recently i was working on modifying the Symbolic links ... for a particular files.. while searching on internet i saw your post ... I am trying to use this script which you had posted ..
find /home/user/public_html/qa/ -type l \ -lname '/home/user/public_html/dev/*' -printf \ 'ln -nsf $(readlink %p|sed s/dev/qa/) $(echo %p|sed s/dev/qa/)\n'\
script.sh
SO i tried to modify your script for my problem .. in Hp unix env.. but it seems that the -lname command does not works for HP unix. do you know something equivalent that i can use ...
Just to give you and idea of my problem ...
I want to change all the symbolic links inside a particular folder ..
New Symbolic link --> /base/testusr/scripts Old Symbolic link --> /base/produsr/scripts
Now folder "A" contains more than 100 different files having soft links which points to this path --> /base/produsr/scripts
But what I want is that the files inside folder A to point to this soft link -->/base/testusr/scripts
I am trying to achieve in Hp unix ... would really appreciate your help on this ...
© Super User or respective owner