• Home
  • About
  • Archives
Skip to content

Pario TechnoBlob

A chronological documentation test project, nothing serious, really!

  • Home
  • About
  • Archives

Cronjobb som sletter gamle filer

Posted on 15. April 200714. November 2007 by Hans-Henry Jakobsen
find /data/folder -type f -uid 400 -atime +2 -exec /bin/rm {} ;
find /data/folder -type d -uid 400 -atime +2 | sort -r | /usr/bin/perl -e 'foreach (<>) {chop; rmdir;

Share this:

  • Twitter
  • Facebook
Posted in: Linux, ScriptingTagged: crontab, find, perl, sort

Post navigation

Previous: Get the dimensions of most images from the command line
Next: Extract pictures from a VOB file using transcode
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Search

Apache apt-get awk backup basename bash CentOS convert csv Database dd Debian esxi5 Etch EXIF Fedora find Gentoo grep howto html imagemagick iptables iso jhead JPG mount MySQL Nikon nmap perl PHP Postfix RedHat rename rhel5 sed sftp SMTP sort ssh Ubuntu VMware Wordpress Zimbra

  • Backup
  • Linux
  • Misc
  • Network
  • Photo etc
  • Scripting
  • Security
  • Virtualization
  • Web
  • Windows
Resume X WordPress Theme by Wp Theme Space