ashok has asked for the wisdom of the Perl Monks concerning the following question:
But in programs they useMYHEADER.H
I receive the files MYHEADER.H and when I inspect the code and analyzing I get an error on unix that file#include <myheader.h>
is missing. In this case I create a soft link on unix likemyheader.h
and continue. Some times I get files like Myheader.h. I wanted to write a perl script for such problems. I store all the missing files in one text file called 'missing-headers'. My logic is like this:ln -s MYHEADER.H myheader.h
Can you pl. help me in doing this in a smart & best way? Is there a facility in perl to create soft link? I appreciate your help. Thanks Ashok1. Open missing-headers. 2. Read a file and check entire directory if any file is found irrespe +ctive of case(how to?). 3. If found create a soft link in the corresponding directory. 4. If not found report file name in a file 'really-missing.txt'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Finding files in unix irrespective of case
by repson (Chaplain) on Jan 06, 2001 at 06:33 UTC | |
by ashok (Sexton) on Jan 06, 2001 at 07:19 UTC | |
|
Re: Finding files in unix irrespective of case
by Fastolfe (Vicar) on Jan 06, 2001 at 06:00 UTC | |
by Anonymous Monk on Jan 06, 2001 at 07:11 UTC | |
|
Re: Finding files in unix irrespective of case
by mp3car-2001 (Scribe) on Jan 06, 2001 at 09:20 UTC | |
by ashok (Sexton) on Jan 06, 2001 at 12:52 UTC |