Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: I want a pe...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 11007 of 11532
Post > Topic >>

Re: I want a perl script for?

by vinayak.dutt@[EMAIL PROTECTED] (Vinayak dutt) May 2, 2008 at 11:39 AM

------=_Part_13208_3077322.1209708589996
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On 5/1/08, Rob Dixon <rob.dixon@[EMAIL PROTECTED]
> wrote:
>
> Vinayak dutt wrote:
> >
> > 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
> text
> > file.
> >
> > 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
> the
> > 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

------=_Part_13208_3077322.1209708589996--
 




 5 Posts in Topic:
I want a perl script for?
vinayak.dutt@[EMAIL PROTE  2008-04-30 12:50:49 
Re: I want a perl script for?
Jenda@[EMAIL PROTECTED]   2008-04-30 15:53:05 
Re: I want a perl script for?
orasnita@[EMAIL PROTECTED  2008-04-30 20:58:32 
Re: I want a perl script for?
rob.dixon@[EMAIL PROTECTE  2008-04-30 22:37:23 
Re: I want a perl script for?
vinayak.dutt@[EMAIL PROTE  2008-05-02 11:39:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 6:26:00 CDT 2008.