Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Feb 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Perl Script...Working on Directory

    Hi All,

    I need a perl script for the following :

    +++++++++++++++++++++++++++++++++++++++++++++
    Write a script which takes a directory name and provides a series of statistics about that directory. It should say:

    •How many files it contains
    •How many of the files are readable and writable
    •How many subdirectories it contains
    •It should also break down all the files into file types based on the last 3 letters in their name. These should be

    listed with the most common extensions first.

    If the name provided either doesn’t exist, or isn’t a directory the script should throw a helpful error message
    ++++++++++++++++++++++++++++++++++++++++++++++++++++

    Please help me out

    Thanks in advance

    Regards,
    Pankaj

  • #2
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,877
    Thanks
    2
    Thanked 164 Times in 159 Posts
    Have you read the posting rules for this forum, specifically the part about no homework assignments?

    http://www.codingforums.com/rules.htm

  • #3
    Regular Coder
    Join Date
    Aug 2004
    Posts
    368
    Thanks
    10
    Thanked 4 Times in 4 Posts
    You might try the Cheat::Assignment module: http://search.cpan.org/search?query=...nment&mode=all

  • #4
    New Coder MetalGear's Avatar
    Join Date
    Feb 2008
    Location
    Jambudvipa
    Posts
    56
    Thanks
    6
    Thanked 1 Time in 1 Post
    lol!

    Recently I changed my company, and they have given some exercises to practice,
    when I searched for "unix command to find subdirectories"
    I found this thread


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •