Regarding searching directory and to delete it with specific pattern.

Ramprakash Jelari thinakaran jelari at gmail.com
Wed Dec 1 02:07:03 EST 2010


Hi all,
Would like to search list of directories with specific pattern and delete
it?.. How can i do it?.
Example: in /home/jpr/ i have the following list of directories.
1.2.3-2,  1.2.3-10, 1.2.3-8, i would like to delete the directories other
than 1.2.3-10 which is the higher value?..


Regards,
JPR.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101201/a976c3db/attachment.html>


More information about the Python-list mailing list