Simon:


If you want to get rid of all the files, why not get rid of the coot-backup 
directories?  In which case, it should be simple:



find . -name "coot-backup" -print -exec /bin/rm {} \;



where the "dot" following the find will start from wherever you currently are, 
but you could specify the directory to start in.



If COOT doesn't lead such long names, I would opt for something like 
2009_04_24_13:15:01-1650.pdb, which will cause ls to list the files in time 
order, which would be useful.



Steven



>-----Original Message-----

>From: Mailing list for users of COOT Crystallographic Software

>[mailto:[email protected]] On Behalf Of Simon Kolstoe

>Sent: Friday, April 24, 2009 11:52 AM

>To: [email protected]

>Subject: deleting coot backup directories

>

>Dear Cootbb,

>

>As I am a crystallographer and not a programmer, could anyone suggest

>a bash script that will go through my hard drive deleting all the

>pesky "coot-backup" directories with their horribly long file names

>that zipping software cannot cope with? Also, in a future version of

>coot, would it be possible to change the names of the coot-backup

>files to something simpler e.g. just date and time (for instance

>something like 240409-1650.pdb)?

>

>Thanks,

>

>Simon

Reply via email to