symbolic links for directories
Posted on 2005-05-03
I am writing scripts for an application that needs a table translation for paths, I'd like to use symbolic links if its possible, here is the problem:
A small group of users may use paths as follows:
For manageability, all those directories have a 2 character name (aa, ab, ac etc) and either a translation table is necessary or symbolic links but I am not too sure if I can use symbolic links. In the example above the directory names should translate like this:
/home/ ---> /home/
~/thoseusers/ ---> ~/thoseusers/
~/thislongdirectoryname/ ---> ~/aa/ (or any other 2 character combination)
~/thatdirname/ ---> ~/aa/ (or any other 2 character combination)
~/another_directory/ ---> ~/aa/ (or any other 2 character combination)
Question: Is it suitable to use symbolic links in this case or is there a better way?
Thank you for your help.