Re: I want a perl script for?
- From: vinayak.dutt@xxxxxxxxx (Vinayak dutt)
- Date: Fri, 2 May 2008 11:39:49 +0530
On 5/1/08, Rob Dixon <rob.dixon@xxxxxxx> wrote:
Vinayak dutt wrote:
text
As am new to Perl and their is a requirment which says -
1. There exists a .zip which contains folders and file.
2. Search for 'makefile' in the respective folders and store them in a
file.the
3. And search for .c files in them and list them in separate text file.
4. Then the files that exists other than .c files should be removed from
dir.
Can anybody give me an idea as to how to solve the above req.
I think that, since you are new to Perl, it would be better to extract the
contents of the zip archive before you try to process its contents with
Perl.
What you have described isn't trivial, and to do it within the context of
a
single archive file would be a struggle without a few months of Perl
experience.
Rob
Hi Rob,
I understand it would be better if i extract the contents of the zip file.
I have also extracted the zip file now and doing accordingly.
But what is that i have not described/explained correctly in my previous
mail??
Now after extracting the zip files i have lot of folders that contain
makefile in them.
And am also now able to LIST ALL THE FILENAME'S THAT HAVE MAKEFILE and
THEIR PATH in a separate text file called "listof_allmake.txt".
From these makefile i have to list all .c files which i have finished,i.e, i HAVE LISTED ALL THE .C FILENAMES and THEIR FILEPATH in a separate
text file called "listof_cfiles.txt".
Next what i have to do is to take individual filepath of makefile and list
respective .c files in them and call all makefiles recursively in all the
other folders and have to store them separately.
Last step is to remove all the .c files which i have listed separately.
Please get back to me if i am not clear with anything here.
Thanks for your time again
Regards,
Vinayak
- References:
- Re: I want a perl script for?
- From: Rob Dixon
- Re: I want a perl script for?
- Prev by Date: Re: File and perl
- Next by Date: perl module?
- Previous by thread: Re: I want a perl script for?
- Next by thread: Re: Getting error - Global signal requires explicit package name
- Index(es):
Relevant Pages
|
|