in reply to Finding files in unix irrespective of case

You're probably looking for symlink, but if I were faced with this situation I would probably work on standardizing everything on lower-case. If your files are including other files using a mixed case, change it to lower-case, and then run through all of your files and change them all to lower-case. Your problem should then be solved without having to worry about building symlinks or other such manipulations.

Short of doing that, I would probably modify the files themselves to point to the correct name. I would view building a bunch of symlinks as a last resort.

  • Comment on Re: Finding files in unix irrespective of case

Replies are listed 'Best First'.
Re: Re: Finding files in unix irrespective of case
by Anonymous Monk on Jan 06, 2001 at 07:11 UTC
    Hi, Since I am not supposed to change the code in the files I received, as a last resort I am creating soft links. Take your suggestion. "MYHEADER.H" becomes "myheader.h". In some of the programs(files) user might be including like
    #include <MYHEADER.H>
    Then I will get the error that MYHEADER.H is missing. So renaming will not work here as you suggested as I should not change code in the files. Many times I found user including like:
    #include <Myheader.h>
    In this case also your suggestion will not work. So I was forced to create soft links. First of all I do not know how to find a file with the same name but in different case in perl. I think I am clear to you. Thanks Ashok