Re: I want a perl script for?



On 5/1/08, Rob Dixon <rob.dixon@xxxxxxx> 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


Relevant Pages

  • Re: Having Major Problems
    ... Open folders in separate process ... > on a regular basis and now it's a "mess"... ... > Open folders in separate process ... > 1- Use chkdsk to check the integrity of your hard disk: ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: How to import an existing folder into Visual Studio
    ... Microsoft MVP, MCSD ... There are thousands of files and 10s of folders. ... I am planning to use the cl compiler of Visual Studio and then find ... Also, if reading from makefile, then VC should also be able to set ...
    (microsoft.public.vc.language)
  • HELP !!! OE 5.5 messages scrambled in xfer to new XP/OE6 system !!!
    ... getting the mail from the like-named folders (e.g., ... "sent items") in all 4 of my mailboxes merged into a ... I know I have to move them through Outlook as a middle-man ... burning a CD-ROM) via the four separate files which I ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Separate PST folders for email accounts. How do I ...
    ... Its Outlook 2003, and Windows XP Pro (maybe I shouldn't have had the ... In truth all I was trying to do was to separate 'home' type emails from ... to use rules to separate incoming messages into separate folders. ...
    (microsoft.public.outlook.installation)
  • Re: Transferring calendar data
    ... The data would be separate. ... > have Outlook 2000 on my laptop, ... I should be able to export a PST file from the ... > import as "a separate set of folders" on my laptop. ...
    (microsoft.public.outlook.calendaring)