Re: [SuSE Linux] Old version file removal
On Fri, 25 Dec 1998, EGRET Lures wrote:
Is there a way of removing old backup files on a system wide basis? I have searched through "Linux in a Nutshell" and hadn't noticed anything. All I want to keep are the latest versions. TIA Henry Checkout the 'find' command. It will let you search the disk for files meeting certain characterstisics and then execute command operations on what it finds. You could also just write a basic shell script to do what you want and put it or some find stuff inside a cronjob to be run at such frequency as you choose. ex: "find . -name *.old -ok {} \;" This would find files in the current dir (.) bye _name_ with and *.old name and and then ask you (-ok) if it's ok to remove these files.
-M - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (1)
-
hekate@intergate.bc.ca