>  From: Sumit Upadhyay <[EMAIL PROTECTED]>
>  Subject: [twincling] how to remove directory recursively in perl?
>  Sent: 11 Oct '06 18:18
>  
>  Hi:
>  
>  Can we remove a Directory Recursively which is not Empty
>  in Single Command?
>  
>  "rmdir " Function  works only if Dir is Empty.
>  
>  We can write functions which can make Directory empty
>  & then use rmdir . But it  will be good if it is possible in
>  single line like  "rm -fr *** "  as in Linux.
>  
>  If it is possible then let me know.
>  
>  --
>  Sumit
>  

Programmatically as in an scripting language ?

You need to use a combination of 
  - glob a list in an scalar array
  - rmdir
running the outer while array elements number of time.
and each rmdir is executed as "./$filename".


Hope this helps.

thanks
Saifi.




=====================================================
      Mark your calendar for the next TSM
      Saturday (5pm - 7:30pm) on 28th October 2006

      DSPACE

      DSPACE is an open source software package which provides 
      the tools for management of digital assets, and is commonly 
      used as the basis for an institutional repository. 

      It is also intended as a platform for Digital preservation
      activities. Since its release in 2002, as a product of the 
      HP-MIT Alliance, it has been installed and is in production 
      at over 100 institutions around the globe, from large 
      universities to small higher education colleges and 
      research centres. 
      

      Venue:
      5th Floor, Conference Room
      COMMVAULT Systems (India) Pvt Ltd.

      Ashoka Janardhan Chambers
      S. P. Road, Begumpet
      Hyderabad.

      Helpline:
      +91 - 98482 37656 

      To know more about TWINCLING Society
      http://www.twincling.org/

      Visit the TWINCLING Photo Gallery at
      http://www.flickr.com/photos/twincling
=====================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/twincling/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/twincling/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to